Skip to content

Commit

Permalink
Merge pull request #3 from scikit-image/add-entry-point
Browse files Browse the repository at this point in the history
Add an entry point for the JupyterLite app
  • Loading branch information
stefanv authored Aug 26, 2024
2 parents 1cc1a0e + d7cfcd5 commit 5f440e9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ jobs:
- name: Install the dependencies
run: |
python -m pip install -r requirements/jupyterlite.txt
- name: Prepare directory
# Jupytext is not supported in JupyterLite yet
# Using plain ipynb format is also simpler to teach
- name: Convert to ipynb format
run: |
find tutorial/ -name "*.md" \
-exec jupytext --to ipynb {} \; \
-exec rm {} \;
cp README.md tutorial
- name: Build the JupyterLite site
run: |
jupyter lite build --contents tutorial --output-dir dist
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This repository contains the teaching materials for the [scikit-image tutorial a

> [!IMPORTANT]
> The tutorial is intended to be run in the browser. \
> **[Open the online tutorial here](https://scikit-image.org/euroscipy24-tutorial/)**!
> **[Open the online tutorial here](https://scikit-image.org/euroscipy24-tutorial/lab/index.html?path=00_start.ipynb)**!

## Contributing
Expand Down
1 change: 1 addition & 0 deletions jupyter-lite.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"jupyter-lite-schema-version": 0,
"jupyter-config-data": {
"appName": "scikit-image tutorial at EuroSciPy 2024",
"litePluginSettings": {
"@jupyterlite/pyodide-kernel-extension:kernel": {
"pyodideUrl": "https://cdn.jsdelivr.net/pyodide/v0.27.0a2/full/pyodide.js"
Expand Down
26 changes: 26 additions & 0 deletions tutorial/00_start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
jupyter:
jupytext:
text_representation:
extension: .md
format_name: markdown
format_version: '1.3'
jupytext_version: 1.16.4
kernelspec:
display_name: Python (Pyodide)
language: python
name: python
---

# scikit-image tutorial at EuroSciPy 2024

**Scientists are producing more and more images with telescopes, microscopes, MRI scanners, etc. They need automatable tools to measure what they've imaged and help them turn these images into knowledge. This tutorial covers the fundamentals of algorithmic image analysis, starting with how to think of images as NumPy arrays, moving on to basic image filtering, and finishing with a complete workflow: segmenting a 3D image into regions and making measurements on those regions.**

This web app contains the teaching materials for the [scikit-image tutorial at EuroSciPy 2024](https://pretalx.com/euroscipy-2024/talk/ZVBAKK/).
It's a JupyterLite application that uses Pyodide to run Python directly in your browser! You don't need to create a local Python environment and can directly start.

The tutorial is aimed at folks who have some experience in scientific computing with Python, but are new to image analysis. We will introduce the fundamentals of working with images in scientific Python. At every step, we will visualize and understand our work using Matplotlib.

- [Part 1: Images are just NumPy arrays](01_images_are_arrays.ipynb). In this section we will cover the basics: how to think of images not as things we can see but numbers we can analyze.
- [Part 2: Changing the structure of images with image filtering](02_image_filtering.ipynb). In this section we will define filtering, a fundamental operation on signals (1D), images (2D), and higher-dimensional images (3D+). We will use filtering to find various structures in images, such as blobs and edges.
- [Part 3: Finding regions in images and measuring their properties](03_segmentation_and_measuring.ipynb). In this section we will define image segmentation — splitting up images into regions. We will show how segmentation is commonly represented in the scientific Python ecosystem, some basic and advanced methods to do it, and use it to make object measurements.

0 comments on commit 5f440e9

Please sign in to comment.