Note
Go to the end to download the full example code.
Interaction box image#
This example demonstrates activating ‘transform’ mode on the image layer. This allows the user to manipulate the image via the interaction box (blue box and points around the image).
![interaction box image](../_images/sphx_glr_interaction_box_image_001.png)
from skimage import data
import napari
viewer = napari.view_image(data.astronaut(), rgb=True)
viewer.layers.selection.active.mode = 'transform'
if __name__ == '__main__':
napari.run()