Mathematica package to convert MATHEMATICA expressions to Python Numpy
x: your mathematica expression, it can be numbers, literals,
complexes or lists;
numpy\[LetterSpace]prefix: string defining your Numpy import prefix,
e.g.:
- if your used
import numpy as np, your prefix should be the stringnp - if your used
from numpy import *, your prefix should be the empty string''
- The Numpy python-ready expression (to be copied as a string)
- The formatted expression will be copied to your clipboard, ready to paste to Python
To install the package
- Download it
- Click on
Mathematica'File menu-> Install->From file... - Select the file on your disk
You should be ready to go.
This has not been tested for every possible combinations of all the things, use at your own risks.