Getting Started with Notebooks
Installation
To use Jupyter notebooks with LeRobot, install the notebook dependencies:Launching Jupyter
From your LeRobot environment: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: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
Use Cell Magic for Timing
Use Cell Magic for Timing
Measure execution time of cells:
Enable Auto-Reload
Enable Auto-Reload
Automatically reload modules when they change:
Save Outputs
Save Outputs
Save figures and models periodically:
Memory Management
Memory Management
Clear GPU memory when needed:
Converting Scripts to Notebooks
You can convert any LeRobot example script to a notebook:.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
Share your notebooks with the community on Discord or GitHub Discussions!