# 2A.soft - Custom Magics for Jupyter¶

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.

In [1]:
%load_ext ensae_teaching_cs.td_2a.custom_magics


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

In [2]:
%ENSAEl site

Out[2]:

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

In [3]:
%ENSAE blog

Out[3]:

%ENSAE download stations.txt

'stations.txt'