News for hackers. Stuff that matters.
Re:Python Data Science Handbook: Full Text in Jupyter Notebooks by fulafel on Sunday March 03, 2019 @11:28PM (#19298784)
Is there a way to run notebooks automatically, so you could regenerate notebooks like this after some library code changes or dependency upgrades and check that everything stillw orks?
Re:Python Data Science Handbook: Full Text in Jupyter Notebooks by teej on Monday March 04, 2019 @12:19AM (#19298976)
Yep, Jupyter notebooks have an execution API, you can find more of it here - https://nbconvert.readthedocs.io/en/latest/execute_api.html. Hosted notebooks as a service is a growing area of investment and those services presumably use this API.
Re:Python Data Science Handbook: Full Text in Jupyter Notebooks by amirathi on Monday March 04, 2019 @03:46AM (#19299744)
I built ReviewNB [1] to see visual diff for Jupyter Notebook changes & do a code review on it (by writing comments on cell changes etc.).

One of the next feature for ReviewNB is a CI pipeline for Jupyter Notebooks on GitHub. The idea is to make it easy for users to specify notebook "tests"/"checks" that can then be run on every change.

Given the nature of Notebooks, it's a bit hard to design CI for it in a clean way, but I appreciate any inputs or use cases that you might want to see fulfilled.

[1] https://www.reviewnb.com/

Re:Python Data Science Handbook: Full Text in Jupyter Notebooks by goerz on Monday March 04, 2019 @12:24AM (#19298993)
There's the nbval plugin for pytest. https://nbval.readthedocs.io/en/latest/ I've used that in one of my packages (https://github.com/qucontrol/krotov) to verify example notebooks on every push, on Travis CI
Re:Python Data Science Handbook: Full Text in Jupyter Notebooks by bayesian_horse on Monday March 04, 2019 @02:12AM (#19299385)
At the very least you can use the command line tool to run/export them.