Ask Your Question

sageUser's profile - activity

2017-06-25 04:38:41 +0200 received badge  Popular Question (source)
2017-04-20 03:29:41 +0200 commented answer Import class using mathematica

Thanks for the answer.

2017-04-09 12:17:21 +0200 received badge  Scholar (source)
2017-04-07 20:31:43 +0200 asked a question Import class using mathematica

I have a class a in a file a.sage using the interface to mathematica. I want to use this class in another class b. One way I found was to run first "mv a.sage a.py", which generates a python file. But then I get the error: "NameError: global name 'mathematica' is not defined" because you cannot use mathematica in python as you can use it with sage.

Is there a way importing a self-written class (a.sage) using mathematica in another self-written class (b.sage)?