Mathics3 / mathics-core

An open-source Mathematica. This repository contains the Python modules for WL Built-in functions, variables, core primitives, e.g. Symbol, a parser to create Expressions, and an evaluator to execute them.

Home Page:https://mathics.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can mathics-core be used as a library?

jonaprieto opened this issue · comments

As the title says. I'd like to use it on a Jupyter notebook for example?

Sure.

from mathics.session import MathicsSession

session = MathicsSession()

result = session.evaluate("Sin[Pi]").value

Oh great! Let me try it!

@jonaprieto Is there something else related to this issue, or shall I close it?

Thanks, it worked, I forgot to close it myself. ;)