{"library":"napari","title":"Napari","description":"napari is an n-dimensional array viewer in Python, providing an interactive, multi-dimensional data viewer for scientific visualization. It emphasizes image processing and analysis, offering a flexible, plugin-friendly architecture. As of version 0.7.0, it continues active development with regular feature additions and improvements to its core architecture and ecosystem.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install napari[all]","pip install napari[pyside6]"],"cli":{"name":"napari","version":"Traceback (most recent call last):"}},"imports":["import napari; viewer = napari.Viewer()","import napari; napari.run()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import napari\nimport numpy as np\n\n# Create an empty napari viewer\nviewer = napari.Viewer()\n\n# Add a 2D image layer with random data\nviewer.add_image(np.random.rand(128, 128), name='random image')\n\n# Start the napari event loop (essential for the GUI to appear and be interactive)\nif __name__ == '__main__':\n    napari.run()","lang":"python","description":"This quickstart initializes a napari viewer, adds a simple 2D image layer generated with NumPy, and ensures the viewer's event loop is started using `napari.run()` for a responsive GUI. Replace `np.random.rand` with your actual image data.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}