Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.73 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.73 KB

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