Skip to content

badouralix/bash-in-jupyter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash in Jupyter

Bash scripts are the best ! But sometimes it is quite hard to iterate on them as fast as with python scripts. This small repository aims to demonstrate how we can leverage existing tooling to develop bash scripts.

Bootstrap project

Skip this section, it is only useful to me to remember how to bootstrap this repository

PIPENV_VENV_IN_PROJECT=enabled pipenv install --dev jupyter

Install dependencies

PIPENV_VENV_IN_PROJECT=enabled pipenv sync --dev

Jupyter Notebooks

https://code.visualstudio.com/docs/python/jupyter-support

See how we can leverage notebooks to build an interactive bash script in bash.ipynb

bash.ipynb screenshot

Inline Code Cells

https://code.visualstudio.com/docs/python/jupyter-support-py

See how we can leverage inline code cells to build an interactive bash script in bash.py

bash.py screenshot

Documentation