Getting started with Python
Python is widely used in notebooks. To execute Python code in JupyterLite, a xeus-python kernel is recommended (see JupyterLite kernels for more details).
As a consequence, you will need an environment with this kernel package. You can use either the default Python environment or create your custom one.
Use the Python default environment
- Select the default Python environment on Environments page by clicking on the corresponding environment card
- Click to the plug button to connect to a new project
- Fill the form to create your new project
- Save your project
- Launch the project using the rocket button: it will start a JupyterLite instance
- Create a new notebook clicking on the dedicated icon in the launcher
- Add your code and execute it
Create a custom environment
As explained in create a new environment section, you can create your custom environment. In the following video, you can see the workflow for adding xeus-python kernel, matplotlib and numpy packages and the real-time environment resolution when the 3 packages are added. Don't forget to save the new environment once the resolution has been processed.