%load_ext autoreload
%autoreload 2
Start jupyter notebook on boot
Edit the crontab for your user.
crontab -e
Add the following line.
@reboot source ~/.venv/venv/bin/activate; ~/.venv/venv/bin/jupyter-notebook
Magic Commands
Autoreload imports when file changes were made.
Show matplotlib plots inside the notebook.
import matplotlib.pyplot as plt
%matplotlib inline
Measure excecution time of a cell.
%%time
pip install
from jupyter notebook.
import sys
!{sys.executable} -m pip install numpy