@ky28059/react-jupyter-renderer
A fully-interactive Jupyter notebook renderer in React based on Pyodide and the JupyterLite project.
The Lorenz Differential Equations
Before we start, we import some preliminary libraries.
[2]:
We will also define the actual solver and plotting routine.
[3]:
We explore the Lorenz system of differential equations:
Let's change (, , ) and examine the trajectories.
[4]:
For the default set of parameters, we see the trajectories swirling around two points, called attractors.
After interacting with the system, we can take the result and perform further computations. In this case, we compute the average positions in \(x\), \(y\) and \(z\).
[5]:
[6]:
(30, 3)
Creating histograms of the average positions (across different trajectories) show that, on average, the trajectories swirl about the attractors.
[7]:
[8]:
[9]:
[ ]:
This library uses react-markdown to render Markdown notebook cells. Due to bundling issues, however, react-markdown is listed as a peer dependency and must be installed separately.
1npm i @ky28059/react-jupyter-renderer react-markdown