Skip to content

Commit

Permalink
multiple choice formatting with HTMLMath
Browse files Browse the repository at this point in the history
  • Loading branch information
28left committed Feb 28, 2023
1 parent a29f818 commit 9e677cf
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 5 deletions.
Binary file added dist/cyllene-0.4.2-py3-none-any.whl
Binary file not shown.
Binary file added dist/cyllene-0.4.2.tar.gz
Binary file not shown.
5 changes: 3 additions & 2 deletions pyproject.toml
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "cyllene"
version = "0.4.1"
version = "0.4.2"
description = "IPython package for math problem authoring"
readme = "README.md"
authors = [{ name = "Jan Reimann", email = "jan.reimann@psu.edu" }]
Expand All @@ -20,6 +20,7 @@ dependencies = [
"ipywidgets >= 8.0.1",
"sympy >= 1.10.1",
"pyparsing >= 3.0.9",
"ipyvuetify >= 1.8.2"
"ipyvuetify >= 1.8.2",
"markdown >= 3.4.1"
]
requires-python = ">=3.7"
2 changes: 1 addition & 1 deletion src/cyllene.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: cyllene
Version: 0.4.1
Version: 0.4.2
Summary: IPython package for math problem authoring
Author-email: Jan Reimann <jan.reimann@psu.edu>
License: MIT License
Expand Down
1 change: 1 addition & 0 deletions src/cyllene.egg-info/requires.txt
Expand Up @@ -4,3 +4,4 @@ ipywidgets>=8.0.1
sympy>=1.10.1
pyparsing>=3.0.9
ipyvuetify>=1.8.2
markdown>=3.4.1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions src/cyllene/widgets/widgets_problem_basic.py
Expand Up @@ -88,8 +88,8 @@ def show(self):
with self.choices:
clear_output()
for i in range(self.problem.num_choices):
display(Markdown('**(' + str(i+1) + ')** &nbsp;&nbsp; ' +
self.problem.choices[self.indices[i]]))
display(widgets.HTMLMathL(markdown.markdown(
'**(' + str(i+1) + ')** &nbsp;&nbsp; ' + self.problem.choices[self.indices[i]])))

display(widgets.VBox([self.choices, widgets.HBox(
self.choice_buttons), self.feedback]))
Expand Down

0 comments on commit 9e677cf

Please sign in to comment.