Getting started with Python
Python is the most popular language for Jupyter notebooks. To run Python code in JupyterLite, we recommend using the xeus-python kernel. This requires an environment with the kernel package installed.
You have two options:
- Use the default Python environment
- Create a custom Python environment
Using the Default Python Environment
Follow these steps to get started quickly:
-
Select the environment:
- Navigate to the Environments page
- Click on the default Python environment card
-
Create your project:
- Click the plug button to connect
- Complete the project creation form
- Save your project configuration
- Launch and use your notebook:
- Start your JupyterLite instance by clicking the rocket button
- Create a new notebook from the launcher
- Write and execute your Python code
Creating a Custom Python Environment
For more control over your environment:
-
Create a new environment (see our Create a New Environment guide)
-
Add the required packages:
xeus-pythonkernel (required for Python execution)- Additional packages like
matplotlibandnumpy
-
Watch the environment resolution process in real-time
-
Important: Save your new environment after package resolution completes
The video demonstrates the complete workflow for:
- Adding the
xeus-pythonkernel - Installing
matplotlibandnumpypackages - Real-time environment resolution