kornia / kornia/tutorials

CI: Skip cells with `pip install` using regex

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
CI enhancement
Dominant language
Jupyter Notebook
Stars
52
Forks
36
PR merge metrics
No merged PRs in 30d

Description

At #81 I speed up the tutorials run CI by some minutes skipping the cells with `!pip install ...`.

At #81, it was done by adding the tag `skip-execution` to the cells. But we should have some more generic/automatic way to skip these cells. Which I believe can be achieved using `--RegexRemovePreprocessor` option from `jupyter nbcovert` command.

Contributor guide

Open the contributing guide

Research direction

Start by finding the tutorial CI workflow and its `jupyter nbconvert` invocation; compare it with the existing `skip-execution` tags added for #81. Check how `--RegexRemovePreprocessor` matches `!pip install ...`, then verify the CI tutorial run skips those cells while other cells still execute.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.