This adds a nifty click-based CLI that runs the notebooks in this repo. It can auto-find them (once they're put into the package, rather than top-level notebooks/ dir), and detect their parameters to pass through on CLI.
The benefits of this are:
makeflow do-scripts don't have to set a path to the repo, the repo just has to be installed into the conda env you're using, and they're all available.
This uses papermill to run the notebooks, which is a little nicer than nbconvert -- it displays a progress bar of which cell is running, and also auto-saves notebooks every few seconds so that if they crash, you can load it up and debug.
You don't need to set env variables to set parameters, just pass them like command-line parameters.
I've only added the lstbin-inspect notebook so far, because I didn't want to move anything that would break pipelines. Other notebooks can be moved over time.
This PR also has a couple of updates to the lstbin-inspect notebook which I've been running as tests of this script.
This adds a nifty
click
-based CLI that runs the notebooks in this repo. It can auto-find them (once they're put into the package, rather than top-levelnotebooks/
dir), and detect their parameters to pass through on CLI.The benefits of this are:
papermill
to run the notebooks, which is a little nicer thannbconvert
-- it displays a progress bar of which cell is running, and also auto-saves notebooks every few seconds so that if they crash, you can load it up and debug.I've only added the lstbin-inspect notebook so far, because I didn't want to move anything that would break pipelines. Other notebooks can be moved over time.
This PR also has a couple of updates to the
lstbin-inspect
notebook which I've been running as tests of this script.