napari 0.4.10rc0


pip install napari==0.4.10rc0

Project Links

Meta
Author: napari team
Requires Python: >=3.7

Classifiers

Development Status
  • 3 - Alpha

Environment
  • X11 Applications :: Qt

Intended Audience
  • Education
  • Science/Research

License
  • OSI Approved :: BSD License

Programming Language
  • C
  • Python
  • Python :: 3 :: Only
  • Python :: 3.7
  • Python :: 3.8
  • Python :: 3.9

Topic
  • Scientific/Engineering
  • Scientific/Engineering :: Visualization
  • Scientific/Engineering :: Information Analysis
  • Scientific/Engineering :: Bio-Informatics
  • Utilities

Operating System
  • Microsoft :: Windows
  • POSIX
  • Unix
  • MacOS

napari

multi-dimensional image viewer for python

image.sc forum License Build Status codecov Python Version PyPI PyPI - Downloads Development Status Code style: black DOI

napari is a fast, interactive, multi-dimensional image viewer for Python. It's designed for browsing, annotating, and analyzing large multi-dimensional images. It's built on top of Qt (for the GUI), vispy (for performant GPU-based rendering), and the scientific Python stack (numpy, scipy).

We're developing napari in the open! But the project is in an alpha stage, and there will still likely be breaking changes with each release. You can follow progress on this repository, test out new versions as we release them, and contribute ideas and code.

We're working on tutorials, but you can also quickly get started by looking below.

installation

which distribution to install

If you want to contribute back to napari codebase, you need to install from source code: see the from source section.

If you do not want to use napari as python code and only use it as GUI app, the bundled app is the easiest way to install. This is also the only method that does not require python knowledge to work with napari, see the from bundled app section.

If you are using napari from Python to programmatically interact with the app, you can install via pip, conda-forge, or from source. We recommend that you use conda to help manage the virtual environment. Otherwise you may see compilation issues that are specific to your particular machine, which is difficult for us to debug.

from pip, with "batteries included"

napari can be installed on most macOS, Linux, and Windows systems with Python 3.7, 3.8, and 3.9 using pip. However, for Windows users, you need to preinstall Microsoft Visual C++ Build Tools in order to install VisPy (one of the packages we depend on) on Windows machines.

The simplest command to install with pip is:

pip install 'napari[all]'

(See Specifying a GUI Backend below for an explanation of the [all] notation.) Note: while not strictly required, it is highly recommended to install napari into a clean virtual environment using an environment manager like conda or venv. For example, with conda:

conda create -y -n napari-env python=3.8
conda activate napari-env
pip install 'napari[all]'

from source

To clone the repository locally and install in editable mode use

git clone https://github.com/napari/napari.git
cd napari
pip install -e '.[all]'

# or, to install in editable mode AND grab all of the developer tools
# (this is required if you want to contribute code back to napari)
pip install -r requirements.txt

For more information or troubleshooting see our installation tutorial

ℹ️ Specifying a GUI Backend

napari needs a library called Qt to run its user interface (UI). In Python, there are two alternative libraries to run this, called PyQt5 and PySide2. By default, we don't choose for you, and simply running pip install napari will not install either. You might already have one of them installed in your environment, thanks to other scientific packages such as Spyder or matplotlib. If neither is available, running napari will result in an error message asking you to install one of them.

Running pip install 'napari[all]' will install the default framework – currently PyQt5, but this could change in the future.

To install napari with a specific framework, you can use:

pip install 'napari[pyqt5]'    # for PyQt5

# OR
pip install 'napari[pyside2]'  # for PySide2

simple example

(The examples below require the scikit-image package to run. We just use data samples from this package for demonstration purposes. If you change the examples to use your own dataset, you may not need to install this package.)

From inside an IPython shell, you can open up an interactive viewer by calling

from skimage import data
import napari

viewer = napari.view_image(data.astronaut(), rgb=True)

image

To use napari from inside a script, use napari.run():

from skimage import data
import napari

viewer = napari.view_image(data.astronaut(), rgb=True)
napari.run()  # start the "event loop" and show the viewer

features

Check out the scripts in our examples folder to see some of the functionality we're developing!

napari supports six main different layer types, Image, Labels, Points, Vectors, Shapes, and Surface, each corresponding to a different data type, visualization, and interactivity. You can add multiple layers of different types into the viewer and then start working with them, adjusting their properties.

All our layer types support n-dimensional data and the viewer provides the ability to quickly browse and visualize either 2D or 3D slices of the data.

napari also supports bidirectional communication between the viewer and the Python kernel, which is especially useful when launching from jupyter notebooks or when using our built-in console. Using the console allows you to interactively load and save data from the viewer and control all the features of the viewer programmatically.

You can extend napari using custom shortcuts, key bindings, and mouse functions.

tutorials

For more details on how to use napari checkout our tutorials. These are still a work in progress, but we'll be updating them regularly.

mission, values, and roadmap

For more information about our plans for napari you can read our mission and values statement, which includes more details on our vision for supporting a plugin ecosystem around napari. You can see details of the project roadmap here.

contributing

Contributions are encouraged! Please read our contributing guide to get started. Given that we're in an early stage, you may want to reach out on our Github Issues before jumping in.

code of conduct

napari has a Code of Conduct that should be honored by everyone who participates in the napari community.

governance

You can learn more about how the napari project is organized and managed from our governance model, which includes information about, and ways to contact, the @napari/steering-council and @napari/core-devs.

citing napari

If you find napari useful please cite this repository using its DOI as follows:

napari contributors (2019). napari: a multi-dimensional image viewer for python. doi:10.5281/zenodo.3555620

Note this DOI will resolve to all versions of napari. To cite a specific version please find the DOI of that version on our zenodo page. The DOI of the latest version is in the badge at the top of this page.

help

We're a community partner on the image.sc forum and all help and support requests should be posted on the forum with the tag napari. We look forward to interacting with you there.

Bug reports should be made on our github issues using the bug report template. If you think something isn't working, don't hesitate to reach out - it is probably us and not you!

0.6.1 May 19, 2025
0.6.1rc3 May 18, 2025
0.6.1rc2 May 15, 2025
0.6.1rc0 May 14, 2025
0.6.0 May 01, 2025
0.6.0rc2 Apr 29, 2025
0.6.0rc1 Apr 29, 2025
0.6.0rc0 Apr 23, 2025
0.6.0a1 Apr 11, 2025
0.6.0a0 Mar 15, 2025
0.5.6 Jan 22, 2025
0.5.6rc1 Jan 21, 2025
0.5.6rc0 Jan 17, 2025
0.5.5 Dec 12, 2024
0.5.5rc1 Dec 11, 2024
0.5.4 Sep 30, 2024
0.5.4rc4 Sep 30, 2024
0.5.4rc3 Sep 30, 2024
0.5.4rc2 Sep 27, 2024
0.5.4rc1 Sep 27, 2024
0.5.4rc0 Sep 27, 2024
0.5.3 Aug 30, 2024
0.5.3rc1 Aug 30, 2024
0.5.3rc0 Aug 29, 2024
0.5.2 Aug 13, 2024
0.5.2rc1 Aug 12, 2024
0.5.2rc0 Aug 12, 2024
0.5.1 Jul 25, 2024
0.5.1rc0 Jul 24, 2024
0.5.1a1 Jul 23, 2024
0.5.1a0 Jul 23, 2024
0.5.0 Jul 11, 2024
0.5.0rc0 Jul 10, 2024
0.5.0b0 Jul 08, 2024
0.5.0a8 Jul 08, 2024
0.5.0a5 Jul 01, 2024
0.5.0a4 Jun 26, 2024
0.4.19.post1 Feb 28, 2024
0.4.19 Feb 01, 2024
0.4.19rc8 Jan 30, 2024
0.4.19rc7 Jan 28, 2024
0.4.19rc6 Jan 27, 2024
0.4.19rc5 Jan 24, 2024
0.4.19rc4 Jan 23, 2024
0.4.19rc3 Dec 21, 2023
0.4.19rc2 Oct 27, 2023
0.4.19rc1 Oct 24, 2023
0.4.19rc0 Oct 20, 2023
0.4.18 Jul 05, 2023
0.4.18rc5 Jul 04, 2023
0.4.18rc4 Jul 04, 2023
0.4.18rc3 Jun 30, 2023
0.4.18rc2 Jun 23, 2023
0.4.18rc1 Jun 22, 2023
0.4.17 Nov 09, 2022
0.4.17rc8 Nov 03, 2022
0.4.17rc7 Nov 01, 2022
0.4.17rc6 Oct 28, 2022
0.4.17rc5 Oct 26, 2022
0.4.17rc4 Oct 05, 2022
0.4.17rc3 Sep 27, 2022
0.4.17rc2 Sep 20, 2022
0.4.16 May 31, 2022
0.4.16rc7 May 31, 2022
0.4.16rc6 May 30, 2022
0.4.16rc5 May 30, 2022
0.4.16rc4 May 26, 2022
0.4.16rc3 May 25, 2022
0.4.16rc2 May 23, 2022
0.4.16rc1 May 05, 2022
0.4.15 Mar 10, 2022
0.4.15rc3 Mar 09, 2022
0.4.15rc2 Mar 08, 2022
0.4.15rc1 Mar 03, 2022
0.4.15rc0 Mar 01, 2022
0.4.14 Feb 04, 2022
0.4.14rc1 Feb 04, 2022
0.4.14rc0 Jan 31, 2022
0.4.13 Jan 17, 2022
0.4.13rc4 Jan 17, 2022
0.4.13rc3 Jan 17, 2022
0.4.13rc2 Jan 15, 2022
0.4.13rc1 Jan 15, 2022
0.4.13rc0 Jan 14, 2022
0.4.12 Oct 21, 2021
0.4.12rc2 Oct 21, 2021
0.4.12rc1 Oct 20, 2021
0.4.12rc0 Oct 18, 2021
0.4.11 Sep 03, 2021
0.4.11rc4 Sep 02, 2021
0.4.11rc3 Sep 01, 2021
0.4.11rc2 Aug 26, 2021
0.4.11rc1 Aug 24, 2021
0.4.11rc0 Aug 22, 2021
0.4.10 Jun 17, 2021
0.4.10rc0 Jun 16, 2021
0.4.9 Jun 11, 2021
0.4.9rc3 Jun 10, 2021
0.4.9rc2 Jun 09, 2021
0.4.9rc1 Jun 07, 2021
0.4.9rc0 Jun 02, 2021
0.4.8 May 18, 2021
0.4.8rc6 May 17, 2021
0.4.8rc5 May 13, 2021
0.4.8rc4 May 12, 2021
0.4.8rc3 May 12, 2021
0.4.8rc2 May 10, 2021
0.4.8rc1 May 07, 2021
0.4.8rc0 May 06, 2021
0.4.7 Mar 25, 2021
0.4.7rc1 Mar 24, 2021
0.4.7rc0 Mar 24, 2021
0.4.6 Mar 02, 2021
0.4.6rc1 Mar 02, 2021
0.4.6rc0 Mar 01, 2021
0.4.5 Feb 12, 2021
0.4.5rc1 Feb 11, 2021
0.4.5rc0 Feb 10, 2021
0.4.4 Jan 28, 2021
0.4.4rc0 Jan 27, 2021
0.4.3 Jan 14, 2021
0.4.3rc3 Jan 14, 2021
0.4.3rc2 Jan 14, 2021
0.4.3rc1 Jan 13, 2021
0.4.3rc0 Jan 12, 2021
0.4.2 Nov 29, 2020
0.4.2rc0 Nov 28, 2020
0.4.1 Nov 25, 2020
0.4.1rc5 Nov 24, 2020
0.4.1rc4 Nov 24, 2020
0.4.1rc3 Nov 24, 2020
0.4.1rc2 Nov 19, 2020
0.4.1rc1 Nov 19, 2020
0.4.1rc0 Nov 18, 2020
0.4.0 Oct 29, 2020
0.4.0rc3 Oct 28, 2020
0.4.0rc2 Oct 28, 2020
0.4.0rc1 Oct 27, 2020
0.4.0rc0 Oct 27, 2020
0.3.8 Sep 24, 2020
0.3.8rc2 Sep 24, 2020
0.3.8rc1 Sep 23, 2020
0.3.8rc0 Sep 23, 2020
0.3.7 Sep 03, 2020
0.3.7rc3 Sep 03, 2020
0.3.7rc2 Sep 02, 2020
0.3.7rc1 Sep 02, 2020
0.3.7rc0 Aug 28, 2020
0.3.6 Jul 19, 2020
0.3.6rc2 Jul 19, 2020
0.3.6rc1 Jul 18, 2020
0.3.5 Jun 18, 2020
0.3.5rc1 Jun 18, 2020
0.3.5rc0 Jun 17, 2020
0.3.4 Jun 03, 2020
0.3.4rc0 Jun 03, 2020
0.3.3 May 31, 2020
0.3.3rc0 May 31, 2020
0.3.2 May 28, 2020
0.3.2rc3 May 27, 2020
0.3.2rc2 May 27, 2020
0.3.1 May 13, 2020
0.3.1rc0 May 13, 2020
0.3.0 May 05, 2020
0.3.0rc1 May 05, 2020
0.3.0rc0 May 05, 2020
0.2.12 Feb 27, 2020
0.2.12rc4 Feb 27, 2020
0.2.12rc2 Feb 26, 2020
0.2.12rc1 Feb 26, 2020
0.2.12rc0 Feb 24, 2020
0.2.11 Jan 31, 2020
0.2.11rc0 Jan 31, 2020
0.2.10 Jan 13, 2020
0.2.10rc0 Jan 13, 2020
0.2.9 Jan 10, 2020
0.2.9rc1 Jan 10, 2020
0.2.8 Dec 23, 2019
0.2.8rc1 Dec 23, 2019
0.2.7 Dec 19, 2019
0.2.7rc2 Dec 18, 2019
0.2.7rc1 Dec 18, 2019
0.2.6 Nov 28, 2019
0.2.6rc1 Nov 28, 2019
0.2.5 Nov 09, 2019
0.2.5rc1 Nov 09, 2019
0.2.4 Oct 31, 2019
0.2.4rc1 Oct 31, 2019
0.2.3 Oct 27, 2019
0.2.2 Oct 17, 2019
0.2.1 Oct 16, 2019
0.2.0 Oct 01, 2019
0.1.5 Sep 11, 2019
0.1.4 Aug 13, 2019
0.1.3 Jul 22, 2019
0.1.2 Jul 19, 2019
0.1.1 Jul 10, 2019
0.1.0 Jul 10, 2019
0.0.9 Jun 15, 2019
0.0.8 May 03, 2019
0.0.7 Apr 16, 2019
0.0.6 Mar 07, 2019
0.0rc0 Jul 30, 2018

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
appdirs (>=1.4.4)
cachey (>=0.2.1)
dask[array] (!=2.28.0,>=2.1.0)
imageio (>=2.5.0)
jsonschema (>=3.2.0)
magicgui (>=0.2.6)
napari-console (>=0.0.3)
napari-plugin-engine (>=0.1.9)
napari-svg (>=0.1.4)
numpy (>=1.16.5)
numpydoc (>=0.9.2)
Pillow (!=7.1.0,!=7.1.1)
pint (>=0.17)
psutil (>=5.0)
PyOpenGL (>=3.1.0)
PyYAML (>=5.1)
pydantic (>=1.8.1)
qtpy (>=1.7.0)
scipy (>=1.2.0)
tifffile (>=2020.2.16)
typing-extensions
toolz (>=0.10.0)
tqdm (>=4.56.0)
vispy (>=0.6.4)
wrapt (>=1.11.1)
importlib-metadata (>=1.5.0)