There are several examples on this site on how to call Mathematica from Python. You can:
- install the bindingsinstall the bindings that come with Mathematica; or
- call a script as a subprocesscall a script as a subprocess from within Python; or even
- set up a pipeset up a pipe and interact with it from your script.
There are some good reasons to interact with Mathematica through Python, especially since the language is highly touted on the Raspberry Pi. The Python bindings for Mathematica aren't available on the RPi version, however. Even pulling the bindings from another installation seems to have problems. So how does one get Mathematica and Python to talk nicely on the Raspberry Pi?