bash magic
Throughout the lesson you will be asked to run commands, which will be in code cells
which are sections with In
and a number next to the, something like:
This teaching material is generated using Jupyter notebooks with nbfancy which help us to generate and maintain the material. In order to execute commands in the terminal we make use of bash magic which allows us to make calls to the terminal from within the notebook. Whenever you see a code block containing commands you are asked to run you it will be preceded by %%bash2
. You do not need to enter this and it will return an error. Wherever this is used we have tried to include a reminder for you not to enter it:
%%bash2 # Ignore this line, it is to help us prepare teaching materials
# You should just run the commands that follow