Skip to content

rendeirolab/lazyslide-workshop-scverse-conference-2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LazySlide workshop for scverse conference 2025

LazySlide workshop @ scverse conference 2025

LazySlide is a Python framework for whole slide image (WSI) analysis that integrates seamlessly with the scverse ecosystem.

LazySlide adopts standardized data structures and APIs familiar to the single-cell and genomics community, making histological analysis intuitive and reproducible. It supports a broad range of tasks from basic preprocessing to advanced deep learning workflows and enables the integration of histopathology into modern computational biology.

Please ⭐ LazySlide and wsidata if you find these tools useful.

If you want to explore LazySlide in more depth, we provide detailed tutorials:

What to expect

By the end of the workshop, participants will understand:

  1. WSI fundamentals

    • What WSIs are and why they are useful
    • Common applications of WSI data
  2. Creating a wsidata object

    • How to open a WSI programmatically
    • What metadata and image information can be retrieved
  3. Using LazySlide for

    • WSI preprocessing
    • Feature extraction
    • Unsupervised spatial domain identification
    • Text-image query
    • Zero-shot classification
    • Cell segmentation

Setting up the environment

Google Colab

Open in Colab

Github Codespaces

Open in GitHub Codespaces

Running locally

Clone the repository:

git clone https://github.com/rendeirolab/lazyslide-workshop-scverse-conference-2025.git

Use uv to setup the environment, How to install uv?

uv sync

Launch Jupyter Lab:

uv run --with jupyter jupyter lab

Setting up a Hugging Face token and apply for model access

You need a Hugging Face account to access many of the models used in LazySlide. If you don't have one yet, please register here.

If you want to experience some features of LazySlide during the workshop, you need to apply for access for two models: Virchow and Prism

Once you're finished, go to your Settings → Access Tokens, click + Create new token, select the Read token type, enter a name such as lazyslide-tutorial, and click Create token. Do not close the pop-up window—copy the token; you'll need it for authentication.

  1. Local setup

Use the Hugging Face CLI to log in:

uv run hf auth login

This command prompts you to enter your token to authenticate this machine.

  1. Google Colab setup

Open the Secrets panel, create an environment variable named HF_TOKEN, paste the token as the value, and enable notebook access. Remember to restart the runtime for the environment variable to take effect.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors