Generating Jupyter Notebooks from the Napari Assistant#

After setting up a workflow using the Napari Assistant, we can export Python code, e.g. as Jupyter Notebook.

In the Assistant panel, click on the Generate Code... button and the Export Jupyter Notebook menu.

Jupyter lab will open and ask you to select a Kernel. Keep the default option and click on Select.

Using SHIFT+ENTER you can execute cells one by one and reporoduce the image analysis workflow.

Edit the parameters and see how results change. Also export another notebook using the menu “Export Jupyter Notebook using Napari”.