IPython for non-Pythonistas

Catherine Devlin

Ohio LinuxFest 2013

  • What is IPython
  • Anything you can do, I can do better
  • Answers life's big questions
    • Where am I?
    • What have I done?
    • What does it all mean?
  • Sharing your enlightenment

IPython

An interactive Python environment

IPython Notebook

A web-based IPython environment

(demo)

Who cares?

Pythonistas care

  • July 2013: 1.0.dev released!

I don't do Python!

Anything you can do...

...

Share

Present

Select Slideshow in Cell Toolbar, then:

ipython3 nbconvert presentation.ipynb --to slides --post serve

Requires ipython 1.0

Blog

Example

More examples in the Gallery

nbviewer

Every notebook is a JSON file with ".ipynb" extension


In [23]:
!head presentation.ipynb


{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
  • nbviewer.ipython.org/url/.ipynb-url serves it publicly!
  • or nbviewer.ipython.org/gist-number
  • downloadable

wakari by Continuum Analytics

Share a link to a workbook

or a link to a bundle

... and your collaborators don't even need Python...

Write

Installation

  • Present in all common Linux repositories
  • Pythonheads: pip install ipython tornado pyzmq (ideally from a virtualenv)
  • Best for matplotlib: Anaconda by Continuum Analytics

Go learn


In [ ]: