Skip to content

Commit

Permalink
Add napari installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jluethi committed Aug 4, 2023
1 parent e24cea0 commit 5ebfed6
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Repository to store demos, notebooks and examples for the [Fractal project](http
## Getting Started
Follow the "How to Get Started" Section [here](https://fractal-analytics-platform.github.io). All the relevant scripts are found in the examples folder. Find the server setup in the `examples/server` folder and follow the README in `examples/01_cardio_tiny_dataset` for a good example to start with where we provide example data.

## Installing napari
[Follow the instructions here](https://github.com/fractal-analytics-platform/fractal-demos/blob/main/napari_installation_instructions.md) to set up napari locally to view the OME-Zarr images generated by Fractal:

## Contributors
Fractal was conceived in the Liberali Lab at the Friedrich Miescher Institute for Biomedical Research and in the Pelkmans Lab at the University of Zurich. The project lead is with [@gusqgm](https://github.com/gusqgm) & [@jluethi](https://github.com/jluethi).
The core Fractal development is done under contract by [@mfranzon](https://github.com/mfranzon), [@tcompa](https://github.com/tcompa), Yuri Chiucconi & [jacopo-exact](https://github.com/jacopo-exact) from [eXact lab S.r.l.](https://exact-lab.it).
69 changes: 69 additions & 0 deletions napari_installation_instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# napari async installation

This guide walks you through installing the current main version of napari, which has better support to load large OME-Zarr data than the released napari version 0.4.18.
It also shows how to install a few of our often needed plugins.

## Setting up conda

In this tutorial, we will install python via miniconda. However, if you already have anaconda, miniconda, or miniforge installed, those will work as well and you can skip to the next section.

1. In your web browser, navigate to the [miniconda page](https://docs.conda.io/en/latest/miniconda.html).
2. Scroll down to the "Latest Miniconda Installer Links" section. Click the link to download the appropriate version for your operating system.
- **Windows**: Most likely the Miniconda3 Windows 64-bit
- **Mac OS**: Choose between Apple M1 (new Macs with Apple Silicon) or MacOSX. Choose the pkg download for an easy installation procedure
3. Once you have downloaded the miniconda installer, run it to install python and follow the installer instructions.

In some setups, conda is already installed, but you need to activate it first.
For a faster setup, check out [mamba](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html)

## Setting up your environment
1. Open your terminal.
- **Windows**: Open Anaconda Prompt
- **Mac OS**: Open Terminal (you can search for it in spotlight - cmd + space)
- **Linux**: Open your terminal application

2. We want to install napari in its own evnironment. This ensures that it does not interfere with your other python projects. To create the environment (named `napari`), enter the following command.

```
conda create -n napari python=3.10 -y
```

## Installing napari & plugins
1. Clone the napari repository

```
git clone https://github.com/napari/napari
cd napari
```

2. (If necessary, get a specific version of napari (I'd expect all main versions to work decently here, but it's only tested with this one))

```
git checkout 91868815831cbf58141824d01d4942d2143bb31b
```

3. Install napari

```
pip install -e .
```

4. Install qt

```
conda install pyqt -y
```

5. Install plugins:

```
pip install napari-ome-zarr
pip install napari-feature-classifier
pip install git+https://github.com/jluethi/napari-ome-zarr-roi-loader.git
```

## Activate the new async mode in napari
The first time you open napari, go to the napari preferences (via the File/napari menu, top left). In the experimental tab, check the box at "Render Images Asynchronously".



0 comments on commit 5ebfed6

Please sign in to comment.