Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ jobs:
# We can comment out after next Mathics3-pygments release
# python -m pip install -e git+https://github.com/Mathics3/Mathics3-pygments#egg=Mathics3-pygments
# We can comment out after next mathics-core release
# git clone --depth 1 https://github.com/Mathics3/mathics-core.git
# cd mathics-core/
# pip install --no-build-isolation -e .
# bash -x admin-tools/make-JSON-tables.sh
# cd ..
pip install git+https://github.com/Mathics3/mathics-core.git
- name: Install mathicsscript
run: |
make
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ jobs:
# We can comment out after next Mathics3-pygments release
# python -m pip install -e git+https://github.com/Mathics3/Mathics3-pygments#egg=Mathics3-pygments
# We can comment out after next mathics-core release
# cd ..
# git clone --depth 1 https://github.com/Mathics3/mathics-core.git
# cd mathics-core/
# pip install --no-build-isolation -e .
# bash -x admin-tools/make-JSON-tables.sh
# cd ..
pip install git+https://github.com/Mathics3/mathics-core.git
- name: Install mathicsscript
run: |
make
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ jobs:
# We can comment out after next Mathics3-pygments release
# python -m pip install -e git+https://github.com/Mathics3/Mathics3-pygments#egg=Mathics3-pygments
# We can comment out after next mathics-core release
# git clone --depth 1 https://github.com/Mathics3/mathics-core.git
# cd mathics-core/
# pip install --no-build-isolation -e .
# bash -x admin-tools/make-JSON-tables.sh
# cd ..
pip install git+https://github.com/Mathics3/mathics-core.git
- name: Install mathicsscript
run: |
make
Expand Down
5 changes: 2 additions & 3 deletions mathicsscript/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
SymbolInterpretationBox,
SymbolMathMLForm,
SymbolOutputForm,
SymbolPaneBox,
SymbolPlot,
SymbolStandardForm,
SymbolTeXForm,
Expand Down Expand Up @@ -148,7 +147,7 @@ def eval_boxed(result, fn: Callable, obj, **options):
png_expr = Expression(
SymbolExport, String(temp_png.name), expr, String("PNG")
)
result = png_expr.evaluate(obj)
png_expr.evaluate(obj)
plt.axes().set_axis_off()
img = mpimg.imread(temp_png)
cmap = "gray" if expr.color_space == "Grayscale" else None
Expand Down Expand Up @@ -224,7 +223,7 @@ def eval_boxed(result, fn: Callable, obj, **options):
raise ValueError

try:
boxes = result.boxes_to_text(evaluation=obj)
boxes = result.to_text(evaluation=obj)
except BoxError:
boxes = None
if not hasattr(obj, "seen_box_error"):
Expand Down
2 changes: 1 addition & 1 deletion mathicsscript/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# well as importing into Python. That's why there is no
# space around "=" below.
# fmt: off
__version__="10.0.0" # noqa
__version__="10.0.1.dev0" # noqa
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ full = [
[project.urls]
Homepage = "https://mathics.org/"

[tool.pyright]
include = ["mathicsscript"]
exclude = [
"**/.pyodide*",
"**/node_modules",
"**/__pycache__"
]

reportMissingImports = true
typeCheckingMode = "basic"

[tool.setuptools]
packages = [
"mathicsscript",
Expand Down