Skip to content

Commit 0d82b84

Browse files
authored
Merge pull request #73 from HealthBioscienceIDEAS/km/fix-icon-links
Fix napari icon links
2 parents 8238c93 + 347c299 commit 0d82b84

8 files changed

+58
-58
lines changed

episodes/filetypes-and-metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ Which is smallest?
439439

440440
- Open all four images in Napari. Zoom in very close to a bright nucleus, and
441441
try showing / hiding different layers with the ![](
442-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/visibility.svg
442+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/visibility.svg
443443
){alt="A screenshot of Napari's eye button" height='30px'} icon.
444444
How do they differ? How does each compare to timepoint 30 of the original
445445
'00001_01.ome' image?

episodes/filters-and-thresholding.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ If you don't have Napari's 'Cells (3D + 2Ch)' image open, then open it with:
5757

5858
Make sure you only have 'nuclei' in the layer list. Select any additional
5959
layers, then click the ![](
60-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/delete.svg
60+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/delete.svg
6161
){alt="A screenshot of Napari's delete layer button" height='30px'} icon to
6262
remove them. Also, select the nuclei layer (should be highlighted in blue), and
6363
change its colormap from 'green' to 'gray' in the layer controls.
@@ -130,7 +130,7 @@ You should see a mask appear that highlights the nuclei in brown. If we set the
130130
nuclei contrast limits back to normal (select 'nuclei' in the layer list, then
131131
drag the left contrast limits node back to zero), then toggle on/off the mask
132132
or nuclei layers with the ![](
133-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/visibility.svg
133+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/visibility.svg
134134
){alt="A screenshot of Napari's eye button" height='30px'} icon, you should see
135135
that the brown areas match the nucleus boundaries reasonably well. They aren't
136136
perfect though! The brown regions have a speckled appearance where some regions
@@ -303,7 +303,7 @@ Let's open the cells image in Napari again:
303303

304304
As before, make sure you only have 'nuclei' in the layer list. Select any
305305
additional layers, then click the ![](
306-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/delete.svg
306+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/delete.svg
307307
){alt="A screenshot of Napari's delete layer button" height='30px'} icon to
308308
remove them. Also, select the nuclei layer (should be highlighted in blue), and
309309
change its colormap from 'green' to 'gray' in the layer controls.
@@ -527,11 +527,11 @@ shrink in size. Increasing the 'radius' of the filter enhances the effect.
527527
First, let's clean up our layer list. Make sure you only have the 'nuclei' and
528528
'Result of gaussian_blur' layers in the layer list - select any others and
529529
remove them by clicking the ![](
530-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/delete.svg
530+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/delete.svg
531531
){alt="A screenshot of Napari's delete layer button" height='30px'} icon. Also,
532532
close all filter settings panels on the right side of Napari (apart from the
533533
gaussian settings) by clicking the tiny ![](
534-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/visibility_off.svg
534+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/visibility_off.svg
535535
){alt="A screenshot of Napari's hide button" height='20px'} icon at their top
536536
left corner.
537537

@@ -585,11 +585,11 @@ processing, and it's good to keep an eye out for when this is required!
585585

586586
Let's return to thresholding our image. Close the gaussian panel by clicking the
587587
tiny ![](
588-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/visibility_off.svg
588+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/visibility_off.svg
589589
){alt="A screenshot of Napari's hide button" height='20px'} icon at its top left
590590
corner. Then select the 'blurred_mask' in the layer list and remove it by
591591
clicking the ![](
592-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/delete.svg
592+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/delete.svg
593593
){alt="A screenshot of Napari's delete layer button" height='30px'} icon.
594594
Finally, open the `napari-matplotlib` histogram again with:
595595
`Plugins > napari Matplotlib > Histogram`
@@ -655,7 +655,7 @@ clear that some areas are still missed or incorrectly labelled.
655655
First, let's clean up our layer list again. Make sure you only have the
656656
'nuclei', 'mask', 'blurred_mask' and 'Result of gaussian_blur' layers in the
657657
layer list - select any others and remove them by clicking the ![](
658-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/delete.svg
658+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/delete.svg
659659
){alt="A screenshot of Napari's delete layer button" height='30px'} icon. Then,
660660
if you still have the `napari-matplotlib` histogram open, close it by clicking
661661
the tiny `x` icon in the top left corner.
@@ -682,10 +682,10 @@ name in the layer list - for example, rename 'mask' to 'manual_mask',
682682
'blurred_mask' to 'manual_blurred_mask', and 'Result of threshold_otsu' to
683683
'otsu_blurred_mask'. Recall that you can change the colour of a mask by clicking
684684
the ![](
685-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/shuffle.svg
685+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/shuffle.svg
686686
){alt="A screenshot of Napari's shuffle button" height='30px'} icon in the top
687687
row of the layer controls. By toggling on/off the relevant ![](
688-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/visibility.svg
688+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/visibility.svg
689689
){alt="A screenshot of Napari's eye button" height='30px'} icons, you should see
690690
that Otsu chooses a slightly different threshold than we did in our
691691
'manual_blurred_mask', labelling slightly smaller regions as nuclei in the final
@@ -727,7 +727,7 @@ How do they compare to standard Otsu thresholding?
727727
`Tools > Segmentation / binarization > Threshold (Otsu et al 1979, scikit-image, nsbatwm)`
728728

729729
Recall that you can change the colour of a mask by clicking the ![](
730-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/shuffle.svg
730+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/shuffle.svg
731731
){alt="A screenshot of Napari's shuffle button" height='30px'} icon in the top
732732
row of the layer controls.
733733

@@ -787,10 +787,10 @@ the 'Napari assistant'.
787787

788788
First, let's clean up our layer list again. Make sure you only have the 'nuclei'
789789
layer in the layer list - select any others and remove them by clicking the ![](
790-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/delete.svg
790+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/delete.svg
791791
){alt="A screenshot of Napari's delete layer button" height='30px'} icon. Also,
792792
close all settings panels on the right side of Napari by clicking the tiny ![](
793-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/visibility_off.svg
793+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/visibility_off.svg
794794
){alt="A screenshot of Napari's hide button" height='20px'} icon at their top
795795
left corner.
796796

episodes/image-display.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ limit will remove any low intensity parts of the image from the display.
325325
## Adjusting contrast
326326

327327
Open the Napari console with the ![](
328-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/console.svg
328+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/console.svg
329329
){alt="A screenshot of Napari's console button" height='30px'}
330330
button and copy and paste the code below:
331331
```

episodes/imaging-software.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -314,16 +314,16 @@ The viewer buttons (the row of buttons at the bottom left of Napari) control
314314
various aspects of the Napari viewer:
315315

316316
### Console ![](
317-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/console.svg
317+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/console.svg
318318
){alt="A screenshot of Napari's console button" height='30px'}
319319

320320
This button opens Napari's built-in python console - we'll use the console more
321321
in later episodes.
322322

323323
### 2D/3D ![](
324-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/2D.svg
324+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/2D.svg
325325
){alt="A screenshot of Napari's 2D button" height='25px'} / ![](
326-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/3D.svg
326+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/3D.svg
327327
){alt="A screenshot of Napari's 3D button" height='25px'}
328328

329329
This switches the canvas between 2D and 3D display. Try switching to the 3D view
@@ -339,7 +339,7 @@ Zoom - Scroll in/out
339339
```
340340

341341
### Roll dimensions ![](
342-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/roll.svg
342+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/roll.svg
343343
){alt="A screenshot of Napari's roll dimensions button" height='25px'}
344344

345345
This changes which image dimensions are displayed in the viewer. For example,
@@ -352,7 +352,7 @@ will bring us back to the original orientation.
352352
with different axes being visualised"}
353353

354354
### Transpose dimensions ![](
355-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/transpose.svg
355+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/transpose.svg
356356
){alt="A screenshot of Napari's transpose dimensions button" height='25px'}
357357

358358
This button swaps the two currently displayed dimensions. Again trying this for
@@ -363,7 +363,7 @@ again brings us back to the original orientation.
363363
with dimensions swapped"}
364364

365365
### Grid ![](
366-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/grid.svg
366+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/canvas-grid-view.svg
367367
){alt="A screenshot of Napari's grid button" height='25px'}
368368

369369
This button displays all image layers in a grid (+ any additional layer types,
@@ -372,7 +372,7 @@ image, we see the nuclei (green) displayed next to the cell membranes (purple),
372372
rather than on top of each other.
373373

374374
### Home ![](
375-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/home.svg
375+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/home.svg
376376
){alt="A screenshot of Napari's home button" height='25px'}
377377

378378
This button brings the canvas back to its default view. This is useful if you
@@ -475,23 +475,23 @@ supported by Napari. The layer buttons allow us to add additional layers of
475475
these new types:
476476

477477
### Points ![](
478-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/new_points.svg
478+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/new_points.svg
479479
){alt="A screenshot of Napari's point layer button" height='30px'}
480480

481481
This button creates a new
482482
[points layer](https://napari.org/stable/howtos/layers/points.html). This can
483483
be used to mark specific locations in an image.
484484

485485
### Shapes ![](
486-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/new_shapes.svg
486+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/new_shapes.svg
487487
){alt="A screenshot of Napari's shape layer button" height='30px'}
488488

489489
This button creates a new
490490
[shapes layer](https://napari.org/stable/howtos/layers/shapes.html). Shapes can
491491
be used to mark regions of interest e.g. with rectangles, ellipses or lines.
492492

493493
### Labels ![](
494-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/new_labels.svg
494+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/new_labels.svg
495495
){alt="A screenshot of Napari's labels layer button" height='30px'}
496496

497497
This button creates a new
@@ -500,7 +500,7 @@ usually used to label specific regions in an image e.g. to label individual
500500
nuclei.
501501

502502
### Remove layer ![](
503-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/delete.svg
503+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/delete.svg
504504
){alt="A screenshot of Napari's delete layer button" height='30px'}
505505

506506
This button removes the currently selected layer (highlighted in blue) from the
@@ -536,11 +536,11 @@ Add points and adjust settings to give the result below:
536536
:::::::::::::::::::::::: solution
537537

538538
- Click the 'add points' button ![](
539-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/add.svg
539+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/add.svg
540540
){alt="Screenshot of Napari's add points button" height='30px'}
541541
- Click on nuclei to add points on top of them
542542
- Click the 'select points' button ![](
543-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/select.svg
543+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/select.svg
544544
){alt="Screenshot of Napari's select points button" height='30px'}
545545
- Click on the point over the dividing nucleus
546546
- Increase the point size slider

episodes/instance-segmentation-and-measurements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ First, let's open one of Napari's sample images with:
6464
`File > Open Sample > napari builtins > Cells (3D + 2Ch)`
6565

6666
Open Napari's console by pressing the ![](
67-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/console.svg
67+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/console.svg
6868
){alt="A screenshot of Napari's console button" height='30px'} button,
6969
then copy and paste the code below.
7070

@@ -270,7 +270,7 @@ they are adjacent to another segmented pixel in any of the three dimensions
270270

271271
You may remember from our [first lesson](imaging-software.md#d3d) that
272272
we can change to 3D view mode by pressing the ![](
273-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/2D.svg
273+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/2D.svg
274274
){alt="Napari's 2D/3D toggle" height='30px'} button.
275275
Try it now.
276276

episodes/multi-dimensional-images.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ for the y and x axes). These comments won't appear in the output in your console
8383
## 3D
8484

8585
Let's remove the mitosis image by clicking the remove layer button ![](
86-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/delete.svg
86+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/delete.svg
8787
){alt="A screenshot of Napari's delete layer button" height='30px'} at the top
8888
right of the layer list. Then, let's open a new 3D image:
8989
`File > Open Sample > napari builtins > Brain (3D)`
@@ -292,7 +292,7 @@ depend on your image and preference. Some pros and cons are shown below:
292292
a time)
293293

294294
2. Channels can be easily shown/hidden with the ![](
295-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/visibility.svg
295+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/visibility.svg
296296
){alt="A screenshot of Napari's eye button" height='20px'} icons
297297

298298
3. Display settings like contrast limits and colormaps can be controlled
@@ -338,11 +338,11 @@ This image is a 2D time series (tyx) of some human cells undergoing mitosis. The
338338
slider at the bottom now moves through time, rather than z or channels. Try
339339
moving the slider from left to right - you should see some nuclei divide and
340340
the total number of nuclei increase. You can also press the small ![](
341-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/right_arrow.svg
341+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/right_arrow.svg
342342
){alt="A screenshot of Napari's play button" height='20px'} icon at the
343343
left side of the slider to automatically move along it. The icon will change
344344
into a ![](
345-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/square.svg
345+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/square.svg
346346
){alt="A screenshot of Napari's stop button" height='25px'}- pressing this will
347347
stop the movement.
348348

@@ -417,7 +417,7 @@ This is a fluorescence microscopy image of mouse kidney tissue.
417417

418418
2. What do each of those dimensions represent? (e.g. t, c, z, y, x) **Hint:**
419419
try using the roll dimensions button ![](
420-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/roll.svg
420+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/roll.svg
421421
){alt="A screenshot of Napari's roll dimensions button" height='25px'} to view
422422
different combinations of axes.
423423

@@ -451,7 +451,7 @@ image.shape
451451

452452
### 2
453453
If we press the roll dimensions button ![](
454-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/roll.svg
454+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/roll.svg
455455
){alt="A screenshot of Napari's roll dimensions button" height='25px'} once, we
456456
can see an image of various cells and nuclei. Moving the slider labelled '0'
457457
seems to move up and down in this image (i.e. the z axis), while moving the
@@ -511,7 +511,7 @@ image layer and select:
511511

512512
This shows the red, green and blue channels as separate image layers. Try
513513
inspecting each one individually by clicking the ![](
514-
https://raw.githubusercontent.com/napari/napari/main/napari/resources/icons/visibility.svg
514+
https://raw.githubusercontent.com/napari/napari/main/src/napari/resources/icons/visibility.svg
515515
){alt="A screenshot of Napari's eye button" height='30px'} icons to hide the
516516
other layers.
517517

0 commit comments

Comments
 (0)