Skip to content

Commit 290e50e

Browse files
committed
Typo fixes, clarifying binary image weirdness in exercise 16, clarifying installation docs
1 parent 0a75171 commit 290e50e

2 files changed

Lines changed: 23 additions & 9 deletions

File tree

episodes/05-napari.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ at the image's shape:
8686

8787
```python
8888
from skimage.io import imread
89-
iage = imread('path/to/FluorescentCells_3channel.tif')
89+
image = imread('path/to/FluorescentCells_3channel.tif')
9090
image.shape
9191
# returns: (512, 512, 3)
9292
```
@@ -127,7 +127,7 @@ channel axis is represented as a slider, meaning we can't view the two at the sa
127127
As an alternative, we can load the image in the Python console:
128128

129129
```python
130-
image = skimage.io.imread('path/to/confocal-series_zstack.tif')
130+
image = imread('path/to/confocal-series_zstack.tif')
131131
image.shape
132132
# returns: (25, 2, 400, 400)
133133
```
@@ -161,7 +161,7 @@ Remember that instead of `matplotlib.pyplot.imshow()`, you'll need to use `viewe
161161
```python
162162
import skimage
163163

164-
image = skimage.io.cells3d()
164+
image = skimage.data.cells3d()
165165
image.shape
166166
# returns: (60, 2, 256, 256)
167167

@@ -208,8 +208,9 @@ For example, we can go to 'Open Sample' -> 'napari builtins' and -> 'Binary Blo
208208
- Split touching objects (nsbatwm). Try experimenting with different sigma values until you get some good cell separations.
209209
- Connected component labelling (scikit-image, nsbatwm)
210210

211-
Note: The Otsu threshold shouldn't be required since the test image is already a binary, but for some reason the 'Split
212-
touching objects' Napari tool isn't able to recognise the original as a binary image.
211+
Note: The Otsu threshold shouldn't be required since the test image is already a binary, but the 'Split
212+
touching objects' Napari tool isn't able to recognise the original as a binary image. This is because Napari expects the values
213+
to be 0/1, whereas the test image uses the values True/False. Thresholding the image again converts it to the right type.
213214

214215
::::::::::::::::::::::::::::::::::::: challenge
215216

learners/setup.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,12 @@ browser tab.
8484
### Jupyter installation
8585

8686
If you don't have access to a JupyterHub instance but still want to use Jupyter, you can
87-
install it locally:
87+
install it locally either with Conda:
8888

8989
$ conda install -c conda-forge jupyterlab # with Conda
90+
91+
Or with pip:
92+
9093
$ pip install jupyterlab # with Pip
9194

9295
Once installed, start Jupyter with:
@@ -95,10 +98,20 @@ Once installed, start Jupyter with:
9598

9699
This will start the server process and open JupyterLab in a new browser window. Follow the same
97100
GUI or graphical folder setup as for JupyterHub above.
101+
102+
You may need to install some extra packages, such as skimage. To do this, exit Jupyter and in the same
103+
terminal window, run:
104+
105+
$ pip install scikit-image
106+
107+
Or in Conda:
108+
109+
$ conda install scikit-image
110+
98111
:::::::::::::::::::::::::
99112

100113
:::::::::::::::: solution
101-
### Local setup
114+
### Local setup with venv and pip
102115

103116
If you wish to use Python on its own, then that is also possible.
104117
You will also need the packages skimage, imageio, numpy and matplotlib.
@@ -167,8 +180,8 @@ $ config config --set solver libmamba # if the confgured solver is 'classic'
167180
:::::::::::::::: solution
168181
### Installation on Windows with Conda
169182

170-
This assumes that you already have Anaconda installed on your system. You will need to use the
171-
'Anaconda' prompt option to open a terminal session with Conda loaded:
183+
This assumes that you already have Anaconda installed on your system. There should be an 'Anaconda
184+
Prompt' option in the start menu. Select this to open a terminal session with Conda loaded, and run:
172185

173186
> conda create --name devbio-napari napari=0.4.19 python=3.9 devbio-napari pyqt -c conda-forge -c pytorch
174187

0 commit comments

Comments
 (0)