Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Lightning introduction to the napari GUI

Before we start working with python, image processing and creating a workflow, let’s take a moment to familiarize with the napari graphical user interface (GUI).

Run the first script to start a quick tour of the GUI:

00_lightning_gui_intro.py

Loading...

Key elements of the GUI:

  1. Dims sliders:

    • allows scrolling through nondisplayed dimensions (in this case the “slides” dimension)

    • you can use arrow keys or ctrl+scroll to move the slider

    • right click on the slider handle to adjust slicing thickness (lets you see across multiple slices)

  2. Viewer buttons:

    • general controls that are used often

    • ipython console (2-way interactivity between code and viewer)

    • 3d/2d toggle (try it, and see how this presentation is just a 3D image!)

    • dimension order controls

    • grid mode (useful for side-by-side when multiple layers are present)

    • home button (reset view)

  3. New layer buttons and layerlist:

    • create new layers based on existing layers for annotation

    • points / shapes / labels

    • select, reorder and enable layers via the layerlist

  4. Layer controls:

    • show current layer controls, depending on the selected layer

    • simple common things like opacity

    • more complex things like modes and layer-specific parameters (e.g: image colormap)

    • the rest they can play with afterwards

  5. Menus:

    • many options (some are empty, extensible by plugins)

    • some typically used are scale bar and axes (in View, tried them out!)

  6. Command palette:

    • many actions (present in menus or not) can be accessed easily with this

Play around!

To better familiarize yourself with all the GUI components above, try opening some sample data (e.g: File -> Open Sample -> napari builtins -> Cells (3D+2Ch), or by searching it through the command palette via Ctrl+Shift+p). Take some time to play around!