Note
Go to the end to download the full example as a Python script or as a Jupyter notebook.
Multiple viewers#
Create multiple viewers from the same script
from skimage import data
import napari
# add the image
photographer = data.camera()
viewer_a = napari.view_image(photographer, name='photographer')
# add the image in a new viewer window
astronaut = data.astronaut()
# Also view_path, view_shapes, view_points, view_labels etc.
viewer_b = napari.view_image(astronaut, name='astronaut')
if __name__ == '__main__':
napari.run()