Version: 1.1.0
Jupyter notebooks
Mojo runs in Jupyter when the kernel package is installed in the same environment as the notebook.
Essentials
- Install the Mojo Jupyter kernel into the environment.
- Select the Mojo kernel from the notebook UI.
- Cells share state, the same way Python cells do.
- Local Jupyter and hosted notebooks such as Colab are both supported when the kernel is available.
Example
$ python -m jupyter kernelspec list
Keep in mind
A notebook is a good place to explore. Move code that you need to ship into a package with tests.