Skip to content

Commit

Permalink
update mathematica doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhz1992 committed Apr 7, 2022
1 parent f01e933 commit 5dc4c00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/readthedocs/tutorials/mathematica/tutmathematica.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ in this file and save it. In general the path will be ``$PENCIL_HOME/mathematica
Mathematica will not search in subdirectories, so make sure the package in right in the folder.

After updating ``init.m``, restart the Mathematica kernel (``Evaluation`` -> ``Quit Kernel``).
To use the package, call ``Needs["pc`"]`` in a notebook or a script.
To use the package, call ``Needs["pc`"]`` and then ``pcInitialize[]`` in a notebook or a script.

Each time you have updated the data, remember to do ``pcInitialize[]`` or ``pcReload[]`` again.
These two functions remove some persistent variables defined.

2. Alternatively, if you don't want to modify ``init.m``, you may also call

Expand Down

0 comments on commit 5dc4c00

Please sign in to comment.