ReviewNB / treon

Easy to use test framework for Jupyter Notebooks
https://reviewnb.com
MIT License
305 stars 29 forks source link

Ability to only run / ignore specific cells #17

Open amit1rrr opened 4 years ago

amit1rrr commented 4 years ago

Executing entire notebook is a "good" CI practice. But it's not always feasible or required (some cells can take hours to run). It would be good to offer an ability to only run specific cells or exclude specific cells. Which cells to run / ignore can be specified with tags.

This whole partial execution can be wrapped as a new treon cmdline flag (e.g. treon --partial). We'd still want the standard mode to execute complete notebooks top to bottom.

merrcury commented 4 years ago

Hi, I am trying to build this feature for quite some time. If You could answer some of the queries that will be helpful.

amit1rrr commented 4 years ago

@merrcury Thanks for helping on this. Here's my thought process,

Hope that helps think through this better.

merrcury commented 4 years ago

@amit1rrr Frontend Extensions seems to be the right path for the treon --partial.

For the jupyter version, I guess I'll want to add support for both versions as some online Notebooks like Azure Notebooks(supports jupyter extensions) is available in classic Jupyter.