2A.soft - Custom Magics for Jupyter

Links: notebook, html ., PDF, python, slides ., GitHub

The following example shows how to define custom logic to your notebooks. You will find more details here: Defining your own magics. It works pretty simple. I just defined the magic commands %ENSAEl, %%ENSAEb and both %ENSAE, %%ENSAE.

from ensae_teaching_cs.mypython.custom_magics import register_magics
register_magics()

The code of ENSAEl is available on ensae_teaching_cs/mypython/custom_magics.py.

%ENSAEl site
ENSAE TD

The code of ENSAE is also available on ensae_teaching_cs/mypython/custom_magics.py.

%ENSAE blog
blog

You can download a file:

%ENSAE download stations.txt
'stations.txt'