在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jmshea/jupyterquiz开源软件地址:https://github.com/jmshea/jupyterquiz开源编程语言:Jupyter Notebook 88.7%开源软件介绍:JupyterQuizJupyterQuiz is a tool for displaying interactive self-assessment quizes in Jupyter notebooks and Jupyter Book. JupyterQuiz is part of my effort to make open source tools for developing modern, interactive textbooks.
These animated GIFs illustrate the two basic question types in JupyterQuiz: Many Choice Question Numerical Answer Question For more examples with various types of functionality, check out the Review section of Chapter 3 of the Introduction to Data Science for Engineers Jupyter Book: Example of JupyterQuiz in Action The notebook test.ipynb shows more features but must be run on your own local Jupyter or in nbviewer -- GitHub only renders the static HTML that does not include the interactive quizzes. (If viewing on GitHub, there should be a little circle with a minus sign at the top of the file that offers you the ability to launch the notebook in nbviewer.) It currently supports two types of quiz questions:
Each type of question offers different ways to provide feedback to help users understand what they did wrong (or right). Quesitons can be loaded from:
New as of version 1.6 (9/26/2021): You can now embed the question source (most importantly, the answers) in Jupyter Notebook so that they will not be directly visibile to users! Question source data can be stored in any Markdown cell in a hidden HTML element (such as a span with the display style set to "none"). Questions can be stored as either JSON or base64-encoded JSON (to make them non-human readable). Please see the notebook HideQuiz.ipynb for examples of how to use this. Tool for making Multiple/Many Choice QuestionsDr. WJB Mattingly (@wjbmattingly) has made a Streamlit App for creating JupyterQuiz question files in an interactive way without having to edit a JSON file. It currently supports multiple/many choice questions. InstallationJupyterQuiz is available via pip:
Multiple/Many Choice QuestionsMultiple/Many Choice questions are defined by a Question, an optional Code block, and a list of possible Answers. Answers include a text component and/or a code block, details on whether the Answer is correct, and Feedback to be displayed for that Answer. The schema for Multiple/Many Choice Questions is shown below: * = Required parameter, (+) = At least one of these parameters is required Example JSON for a many-choice question is below:
Numerical QuestionsNumerical questions consist of a Question, an optional Precision, and one or more Answers. Each Answer can be a Value, a Range, or the Default, and each of these can include Feedback text. Values and Ranges can be marked as correct or incorrect. Ranges are in the form [A,B), where endpoint A is included in the range and endpoint B is not included in the range. When Precision is specified, numerical inputs are rounded to the specified precision before comparing to the Answers. The schema for Numerical questions is shown below: * = Required parameter Example JSON for a numerical question is below:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论