Installation instructions
Option 1 (simple): Using standalone napari app
Note
The only disadvantage of this option is inability to install GPU-accelerated version of torch
Download and install napari as standalone app using installation instructions
Search, download and install napari-nuclephaser plugin by opening the app, navigating to Plugins window and choosing Install/Uninstall plugins.
Option 2 (recommended): Using Anaconda
We recommend installation using Anaconda Distribution
Install Anaconda with Installation instructions
Open Anaconda Prompt using Search Bar or Anaconda Navigator
Create new environment with default anaconda packages using command
conda create --name napari-env python=3.10
Activate new environment using command
conda activate napari-env
Install Napari using command
pip install napari[all]
Verify napari installation using following command. It should open napari GUI.
napari
Install napari-nuclephaser plugin using command
pip install napari-nuclephaser
Plugin is ready to be used! Start napari by typing
napari
Initialize plugin’s widgets by opening Plugins window and choosing NuclePhaser.
Option 2 advanced: installation with GPU
If you have NVIDIA GPU with CUDA, you can significantly increase plugin’s speed.
To install GPU-powered version of the plugin, you first need to do all the steps for the installation using Anaconda (above). Then you need to:
Install CUDA using official instructions
Tip
Check which versions of CUDA are supported by current torch installation and consider installing earlier ones
Check CUDA installation with nvidia-smi command in the command line.
nvidia-smi
In the environment with napari and napari-nuclephaser installed, install CUDA-supported torch by typing specific command for your system, which can be found at torch installation page. For example, if you have Windows-based system and CUDA 12.6, your line should look like
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
Warning
During our tests, torchvision wasn’t installed using this line. To avoid that, add -U after install:
pip3 install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126