Skip to content

elabftw/api-workshop

Repository files navigation

eLabFTW API Workshop

This repository can be cloned to follow the API workshop proposed by Deltablot.

You can open and run notebooks with Jupyter on your computer (OPTION 1) or use Google Colab (OPTION 2).

Option 1: open notebooks locally with Jupyter

Prerequisites

To run the notebooks locally, you will need:

  • A terminal (Terminal on Linux/macOS, or WSL on Windows)
  • git installed

If git is not installed, see: https://git-scm.com/downloads

If you don’t want to use the terminal, you can use the Google Colab option instead.

We will use uv to manage dependencies, see installation instructions: https://github.com/astral-sh/uv?tab=readme-ov-file#installation


Open a terminal and run the following commands:

# Clone the repository on your computer
git clone https://github.com/elabftw/api-workshop.git

# Get into the folder
cd api-workshop

# Install dependencies with uv
uv sync --frozen

# Start Jupyterlab
uv run jupyter lab

If you have followed the above commands, a new window will have opened in your browser, entitled JupyterLab.

In case it did not open, you can also access it directly at: http://localhost:8888/.

Browse the notebooks in JupyterLab

1. Double-click on the notebooks folder.

navigate-notebooks

2. Select your preferred language

(this only affects the eLabFTW screenshots; the notebook content is in English)

select-language

3. Double-click on the part1-intro.ipynb to get started with the workshop.

jupyter-select-parts

You now only need your eLabFTW instance and the Jupyter notebook open. You can close this page for better readability.

Option 2: open notebooks with Google Colab

You can use Google Colab to open and run the Jupyter notebooks without installing anything locally.

Prerequisites

To open and browse the notebooks with Google Colab, you will need a Google account.

Note: If you are not logged in, you will be redirected to the “Welcome to Google Colab” page. Log in, then reopen the link above to access the search page.

2. Select GitHub

google-colab-githubselect

3. Enter this repository's GitHub URL

In the the search bar, type: elabftw/api-workshop and press enter

4. Select part1-intro.ipynb

google-colab-reposelect

Useful links

About

Files for API workshop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors