Jupyter notebook

From wikinotes
Revision as of 19:10, 27 September 2019 by Will (talk | contribs) (→‎Creating Notebooks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Install

sudo pacman -S jupyter
sudo pacman -S pandoc texlive-core  # if rendering to pdf

Usage

Creating Notebooks

jupyter notebook   # opens cwd within web-browser window (choose 'new' to create new document)

Documents are organized into Cells.

  • There are various types of cells (python, markdown, ...)
  • Shift + Enter runs a block.
  • cells can be selected using their left-margin. The can be shifted up, down, deleted etc.
  • python matplotlib can be used within cells to render diagrams.

Rendering Notebooks

jupyter nbconvert notebook.ipynb \
    --to=html \
    --TemplateExporter.exclude_input=True