Code
8 Python 3 Ready

New Notebook

Create a fresh workspace with example cells.

Terminal Session

Open a shell with preset demo output.

Markdown Draft

Sketch notes and document results.

Python Example

Load the Lorenz notebook with sliders.

Lorenz Demo

This README documents a small interactive notebook used to explore the Lorenz system. Use the toolbar to run cells or switch the layout.

The sliders below control sigma, beta, and rho. Adjust them to see how the attractor evolves. Output views show the latest run and source code.

Next: open the Lorenz.ipynb tab to view the notebook layout.

[2]:
from lorenz import solve_lorenz
w=interactive(solve_lorenz, sigma=(0.0, 50.0), rho=(0.0, 50.0))
w
[2]:
sigma 10.00
beta 2.63
rho 28.00
sigma 10.00
beta 2.63
rho 28.00
  1. from matplotlib import pyplot as plt
  2. from mpl_toolkits.mplot3d import Axes3D
  3. import numpy as np
  4. from scipy import integrate
  5. def solve_lorenz(sigma=10.0, beta=8./3, rho=28.):
  6. """ Plot a solution to the Lorenz system. """
  7. t = np.linspace(0, 40, 4000)
  8. state0 = [1.0, 1.0, 1.0]
  9. state = integrate.odeint(lorenz, state0, t)
  10. plot_trajectory(state)
$ python3 lorenz.py
Initializing solver...
sigma=10.00 beta=2.63 rho=28.00
Integrating 4000 steps
Plot saved to output/lorenz.png
$ ready for next command
Simple Python
Workspace loaded