diff --git a/mathics_django/web/models.py b/mathics_django/web/models.py index d169b0d83..c9f81cb55 100644 --- a/mathics_django/web/models.py +++ b/mathics_django/web/models.py @@ -9,6 +9,7 @@ from mathics.core.definitions import Definitions from mathics.core.evaluation import Evaluation, Output +from mathics.core.expression import(Expression, Symbol, SymbolTrue, String) from mathics_django.web.format import format_output @@ -30,6 +31,7 @@ def get_session_evaluation(session): definitions, format='unformatted', output=WebOutput()) _evaluations[session.session_key] = evaluation evaluation.format_output = lambda expr, format: format_output(evaluation, expr, format) + Expression('LoadModule', String("pymathics.asy")).evaluate(evaluation) return evaluation diff --git a/setup.py b/setup.py index 96eecf1f2..db3f3da4b 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ def read(*rnames): is_PyPy = platform.python_implementation() == "PyPy" INSTALL_REQUIRES = [] -DEPENDENCY_LINKS = [] +DEPENDENCY_LINKS = ["http://github.com/Mathics3/pymathics-asy#egg=pymathics-asy"] if sys.platform == "darwin": INSTALL_REQUIRES += ["scikit-image"] @@ -61,6 +61,7 @@ def read(*rnames): "django >= 3.0, < 3.2", "networkx", "requests", + "pymathics-asy", ]