How to interact#
Directly in the browser#
Pyodide makes it possible to run Python code directly in your browser without installing anything locally. This means you can interact with all the code examples and exercises on this page immediately. You do this by clicking the rocket icon
in the toolbar above any code cell. This will activate the interactive mode, allowing you to:
Edit code: Modify the examples to experiment with different parameters
Run code: Execute Python commands and see results instantly
Install packages: Use
await micropip.install("package-name")to add Python librariesInteractive learning: Try variations of the examples to deepen your understanding
The interactive environment runs entirely in your browser using WebAssembly, so your work stays local and private. However, note that refreshing the page will reset the environment and clear any variables you’ve defined.
Download a Jupyter Notebook#
If you prefer to work locally or want to save your progress, you can download any page as a Jupyter Notebook by clicking the download button in the toolbar. This allows you to:
Work offline: Continue experimenting without an internet connection
Save progress: Your changes and results are permanently saved
Full Python environment: Access to all Python packages and features
Integration: Import into your preferred development environment (VS Code, PyCharm, etc.)
To use the downloaded notebook:
Install Python and Jupyter on your computer
Install required packages:
pip install numpy matplotlib sympy dtumathtoolsOpen the notebook file in Jupyter Lab or Jupyter Notebook
Run and modify the code as needed