Jupyter Notebooks (Ipython)¶
Jupyter Notebook Tutorial: Introduction, Setup, and Walkthrough
Display line magics
%lsmagic
These are commands that can be used inside a cell (e.g. to run a bash command) without having to specify an external process.
% indicate cell magics; the whole cell is used as command arguments %% indicate an inline command.
Examples:
- %%html to render HTML directly instead of through markdown
- %%javascript
- %%latex
- %pwd -> current directory
- ! -> run a bash command (e.g. !pip install pyphen)
- % matplotlib inline
- %%timeit