Skip to main content
LeRobot provides interactive Jupyter notebooks to help you learn robot learning concepts and experiment with the library in a hands-on way.

Getting Started with Notebooks

Installation

To use Jupyter notebooks with LeRobot, install the notebook dependencies:

Launching Jupyter

From your LeRobot environment:
This will open a browser window where you can create and run notebooks.

Available Notebooks

While LeRobot focuses on Python scripts for reproducibility, you can easily convert any example into a notebook.

Creating Your Own Notebooks

You can create notebooks for any LeRobot workflow:
1

Dataset Exploration

Load and visualize datasets interactively:
2

Policy Training

Train policies with interactive progress tracking:
3

Visualization

Create interactive visualizations of robot trajectories and policies:

Interactive Learning Resources

Robot Learning Tutorial

A free, hands-on course to learn robot learning using LeRobot

Hugging Face Datasets

Learn about the datasets library used by LeRobot

PyTorch Tutorials

Deepen your understanding of PyTorch, the foundation of LeRobot

Visualize on Hub

Explore and visualize datasets directly on the Hugging Face Hub

Common Notebook Patterns

Pattern 1: Dataset Inspection

Pattern 2: Policy Inference

Pattern 3: Training Visualization

Notebook Best Practices

Measure execution time of cells:
Automatically reload modules when they change:
Save figures and models periodically:
Clear GPU memory when needed:

Converting Scripts to Notebooks

You can convert any LeRobot example script to a notebook:
This creates a .ipynb file that you can open in Jupyter.

Cloud Notebook Platforms

Run LeRobot notebooks on cloud platforms:
  • Google Colab: Free GPU access for experimentation
  • Kaggle Notebooks: Free TPU/GPU resources
  • Amazon SageMaker: Scalable cloud notebooks
  • Paperspace Gradient: GPU-powered notebooks

Example Colab Setup

Sharing Your Notebooks

1

Clean Your Notebook

Remove outputs and sensitive data before sharing
2

Add Documentation

Include markdown cells explaining your approach
3

Share on Hub

Upload to Hugging Face Spaces or GitHub
Share your notebooks with the community on Discord or GitHub Discussions!