Jupyter Notebooks



Tim Head (@betatim)


In [1]:
# Global settings - skip me
# Slideshow
from notebook.services.config import ConfigManager
cm = ConfigManager()
cm.update('livereveal', {'width': 1024, 'height': 768, 'scroll': True, 'theme': 'simple'})


Out[1]:
{'height': 768, 'scroll': True, 'theme': 'simple', 'width': 1024}

"The purpose of computing is insight, not numbers."

-- Hamming 1962

This is a Notebook (and a slide show)

A Jupyter notebook is a turbo charged REPL (Read-Eval-Print Loop).

  • type code
  • run it
  • see the result

The result can be anything your browser can display!

All the languages

Jupyter notebooks started as a python thing, then realised that the UI is completely independent of the kernel.

  • UI: The part you interact with, what we are looking at right now
  • kernel: The part that actually does the work

There are many different kernels:

  • python (the default)
  • bash
  • R
  • Julia
  • (recently ROOT as well)

Let's go!

Switching to code-along mode:


In [2]:
from IPython.display import Image
Image(url="http://i1185.photobucket.com/albums/z349/babybabydontbesoshy/NotBad.gif")


Out[2]: