Skip to content

Jupyter Workflow

S.Y. Lee edited this page May 7, 2019 · 1 revision

Jupyter is a great option for working with symbolic math, because you can easily visualize the mathematical notations and plots while working with prototypes.

If you want to use Jupyter while working with any patches for the SymPy project, I'd recommend you to put your notebooks under SymPy root directory (where you can see AUTHORS file and sympy/ directory), and begin experimenting with your notebooks while editing the library code.

You would also have to use .git/info/exclude file to keep your notebooks from being accidently added, while committing your patches with git add.

If you want to check if you're loading the right SymPy version, check with

import sympy
print(sympy.__file__)

Usually, working under the SymPy root directory can make things less complicated. But if you want to work from another directory, you should use path hack like

import sys
sys.path.insert(0, "<Your absolute or relative path to SymPy>")

and then load the SymPy.

Again, you should double check with the code above that you are using the correct SymPy.

If anyone have better idea about this, please contribute some information here.

Clone this wiki locally
You can’t perform that action at this time.