I'm trying to execute a .ipynb from Mathematica.
I tried this code (*Import the Jupyter notebook file*)nb = Import["/Users/y/x.ipynb", "NB"]; (*Execute the notebook*) NotebookEvaluate[nb]
But it doesn't work. Anyone know how to run a Python Jupyter Book .ipynb File From Mathematica?
Thanks
I converted the file to .py, but that still doesn't help.
ExternalEvaluate["Python", "2+2"]
Even the above simple code results in the following error
ExternalEvaluate::help: For help configuring the Python evaluator, see Configure Python for ExternalEvaluate.
ExternalEvaluate::noinstall: No valid installations for system Python were found with the options specified.
ExternalEvaluate
to work with Python reference.wolfram.com/language/workflow/… But if you just want to run a script, why don't you do that directly instead of involvingExternalEvaluate
?ExternalEvaluate
would be useful to bring Python data to Mathematica in a structured form. $\endgroup$python
withRunProcess
. It seems that the notebook can be executed directly like this: stackoverflow.com/a/35572827/695132 (thejupyter
command can also be run usingRunProcess
). I hope this helps. $\endgroup$