2A.soft - Custom Magics for Jupyter#
Links: notebook
, html, 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
.
%load_ext ensae_teaching_cs.td_2a.custom_magics
The code of ENSAEl
is available on
ensae_teaching_cs/td_2a/custom_magics.py.
%ENSAEl site
The code of ENSAE
is also available on
ensae_teaching_cs/td_2a/custom_magics.py.
%ENSAE blog
You can download a file:
%ENSAE download stations.txt
'stations.txt'
Will you be able to make yours?