Skip to content

Commit 2dd4f22

Browse files
committed
System'Graph is text, for now.
1 parent a61a50a commit 2dd4f22

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mathicsscript/format.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ def format_output(obj, expr, format=None):
2828
if len(leaves) == 1:
2929
expr = leaves[0]
3030
elif expr_type == "System`Graphics":
31-
result = Expression("StandardForm", expr).format(obj, "System`MathMLForm")
32-
ml_str = result.leaves[0].leaves[0]
31+
result = "-System Graphics-"
32+
# result = Expression("StandardForm", expr).format(obj, "System`MathMLForm")
33+
# ml_str = result.leaves[0].leaves[0]
3334
# FIXME: not quite right. Need to parse out strings
34-
display_svg(str(ml_str))
35+
# display_svg(str(ml_str))
3536

3637
if format == "text":
3738
result = expr.format(obj, "System`OutputForm")

0 commit comments

Comments
 (0)