Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To create and/or run Napari script, open a Jupyter notebook or Jupyter Lab from napari-env environment in Anaconda. Or, in case you have an open Napari viewer, you can use the script-editor:

Script-Editor

To get intellisense tips when writing the script one can write the code in Napari installing inside Napari (need to install the napari_script_editor plugin and then accessing it via the user interface Tools > Scripts > Script editor).

Open a new Napari viewer

Code Block
languagepy
import napari  # napari package
viewer = napari.Viewer() # cretae a new napari viewer 

...