We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3110a0d commit e47402eCopy full SHA for e47402e
1 file changed
mathicsscript/format.py
@@ -59,8 +59,8 @@ def eval_boxes(result, fn, obj, **options):
59
elif expr_type in ("System`Graphics", "System`Plot"):
60
form_expr = Expression("StandardForm", expr)
61
result = form_expr.format(obj, "System`StandardForm")
62
- svg_str = eval_boxes(result, result.boxes_to_svg, obj)
63
- if plt and svg2png:
+ if plt and svg2png and hasattr(result, "boxes_to_svg"):
+ svg_str = eval_boxes(result, result.boxes_to_svg, obj)
64
temp_png = NamedTemporaryFile(
65
mode="w+b", suffix=".png", prefix="mathicsscript-"
66
)
0 commit comments