5 ms·
For those who don't know, Jupyter has a bash kernel: https://github.com/takluyver/bash_kernel https://github.com/takluyver/bash_kernel And you can run Jupyter
by edublancas 3y ago
For those who don't know, Jupyter has a bash kernel: https://github.com/takluyver/bash_kernel https://github.com/takluyver/bash_kernel
And you can run Jupyter notebooks from the CLI with Ploomber: https://github.com/ploomber/ploomber https://github.com/ploomber/ploomber
- woleium 3y agoThis is a good solution
- admc 3y agoVery cool, thanks for calling that out, we are big fans of Jupyter!
- enriquto 3y agoAlso, often you don't need to save your Jupyter notebook in the unergonomical json format; instead save it as a script containing your code cells (and the markdown cells as comments). Thus you can run it directly from the command line in whatever language your notebook is, python, bash... To save notebooks as plain text files you pip install jupytext, and it magically works: jupyter will interpret your .py files as notebooks, and so on.
- mdaniel 3y agoThat's how GitLab thinks about that problem, too: https://docs.gitlab.com/ee/user/project/clusters/runbooks/#executable-runbooks https://docs.gitlab.com/ee/user/project/clusters/runbooks/#e... > The JupyterHub app offered via the GitLab Kubernetes integration now ships with Nurtch’s Rubix library, providing a simple way to create DevOps runbooks although this is another case of the "don't use the word 'simple' in your description unless it actually is"