Sample notebooks
In this course we use Jupyter notebooks to combine code, text, plots and media. You can view the notebooks directly in your internet browser. Alternatively, copy-and-paste the notebook's URL in to the box at nbviewer.jupyter.org.
To interact and modify a notebook, click the .ipynb link and download to your Jupyter notebook directory.
Fern
The Barnsley Fern: An image of a fern with self-similar (fractal) properties, generated by iterating certain affine transformations.
ODE_Example
Shows how to:
Solve a first-order single-variable ODE using scipy.integrate.odeint, and plot.
Solve a second-order equation by writing as a pair of first-order equations
Solve predator-prey equations.
View notebook | .ipynb (221KB)
Curve_Fit_Example
Shows how to:
Generate a data set with simulated noise.
Save and then reload the data.
Fit the data to a simple model using scipy.optimize.curve_fit().
Media_Example
Shows how to load and interact with various media: data, images, web pages, YouTube videos and maps.