Skip to main content

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:

  1. Use the default Python environment
  2. Create a custom Python environment

Using the Default Python Environment

Follow these steps to get started quickly:

  1. Select the environment:

  2. Create your project:

    • Click the plug button to connect
    • Complete the project creation form
    • Save your project configuration
  1. 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:

  1. Create a new environment (see our Create a New Environment guide)

  2. Add the required packages:

    • xeus-python kernel (required for Python execution)
    • Additional packages like matplotlib and numpy
  3. Watch the environment resolution process in real-time

  4. Important: Save your new environment after package resolution completes

The video demonstrates the complete workflow for:

  • Adding the xeus-python kernel
  • Installing matplotlib and numpy packages
  • Real-time environment resolution