Most useful shortcuts.
In [1]:
%lsmagic
Out[1]:
In [2]:
%%file hello.txt
Hello, world
This is thing number 1
This is thing number 2
This is thing number 3
In [3]:
%cat hello.txt
In [4]:
! tail -n3 hello.txt | head -n2
In [5]:
%%bash
for i in $(ls); do
echo item: $i
done
In [6]:
%load_ext rpy2.ipython
In [7]:
a, b = 2, 5
In [8]:
%%R -i a,b -o x
x <- a:b
In [9]:
x
Out[9]:
See blog post 28 Jupyter Notebook tips, tricks and shortcuts