"Jupyter" (External Evaluation System)
"Jupyter" (External Evaluation System)
ExternalEvaluate Usage
- ExternalEvaluate[<|"System""Jupyter","Kernel""kernelspec"|>,code] executes the code string in a Jupyter kernel and returns the results as a Wolfram Language string.
Usage Notes
- The kernelspec that you provide is the name of the Jupyter kernel as displayed in a Jupyter Notebook session, such as "python3" or "julia-1.0".
- A Jupyter kernel that is installed and working properly in the Jupyter platform should also work with ExternalEvaluate.
- Jupyter kernels for a large number of programming languages can be obtained from https://github.com/jupyter/jupyter/wiki/Jupyter-kernels.
Examples
open all close allBasic Examples (2)
Start a session using a Jupyter python3 kernel:
py3 = StartExternalSession[<|"System" -> "Jupyter", "Kernel" -> "python3"|>]Evaluate a numerical computation:
ExternalEvaluate[py3, "2**8"]InputForm[%]DeleteObject[py3]Start a session using a Jupyter JavaScript kernel:
js = StartExternalSession[<|"System" -> "Jupyter", "Kernel" -> "javascript"|>]ExternalEvaluate[js, "parseFloat(\"2.99\")"]InputForm[%]DeleteObject[js]Properties & Relations (1)
FindExternalEvaluators will show you the names of all the Jupyter kernels that can be found on your system:
FindExternalEvaluators["Jupyter"]See Also
Related Guides
History
Introduced in 2020 (12.1)