Python Course/IPython Notebooks

From Kevin Sheppard
Jump to: navigation, search

IPython Notebooks

Both the usual IPython notebook, which is can be used with "ipython notebook" as well as the Python exported from the notebook are posted below. The exported Python often contains magics, and if so, are only be executable in IPython.

pandas

Importing data IPythonnb small icon.png
Importing data Python-icon.png

Exporting data using pandas IPythonnb small icon.png
Exporting data Python-icon.png

Series IPythonnb small icon.png
Series Python-icon.png

DataFrames IPythonnb small icon.png
DataFrames Python-icon.png

Multiple Indices IPythonnb small icon.png
Multiple Indices Python-icon.png

matplotlib

Plotting with matplotlib IPythonnb small icon.png
Plotting with matplotlib Python-icon.png

Strings

Strings IPythonnb small icon.png
Strings Python-icon.png

Fancy Indexing

Fancy Indexing IPythonnb small icon.png
Fancy Indexing Python-icon.png

Object Oriented Programming

Object Oriented Programming IPythonnb small icon.png
Object Oriented Programming Python-icon.png

Classes

Class 3
Class 3 IPython Exported to a Notebook IPythonnb small icon.png
Class 3 IPython Exported to a Python File Zip new.png

Class 4 IPython Exported to a Notebook IPythonnb small icon.png
Class 4 IPython Exported to a Python File Zip new.png

Using IPython Notebooks

Warning: These notebooks are large and loading them can take a minute or more.

Windows

C:\Anaconda\Scripts\activate econ
ipython notebook --pylab=inline --notebook-dir=C:\users\USER\python

Note that C:\users\USER\python should be the location of the notebook, and this is only an example.

Linux/OSX

source ~/anaconda/bin/activate econ
ipython notebook --pylab=inline --notebook-dir=/home/USER/python

Note that /home/USER/python should be the location of the notebook, and this is only an example.