To run the tutorials locally, you should ensure that you have Drake available, either via Bazel or via binary packages.
To run the notebooks using Bazel, please refer to the Bazel-Jupyter README. For example:
bazel run //tutorials:mathematical_program
The notebooks in this folder can be viewed and run online using
Binder. To see them from Drake master
on
GitHub, please visit:
https://mybinder.org/v2/gh/RobotLocomotion/drake/master?filepath=tutorials
Since Binder uses the robotlocomotion/drake:latest
image on
Docker Hub that is published
once a day, it may be missing features used by the notebooks on master
. If you
encounter issues running a notebook, please try a commit from earlier in the
day, as close as possible following the publication of the
robotlocomotion/drake:latest
image.
When you add a notebook, please make the first cell be a Markdown cell with the tutorial's title and the following preamble:
For instructions on how to run these tutorial notebooks, please see the
[README](https://github.com/RobotLocomotion/drake/blob/master/tutorials/README.md).
If appropriate, add a Binder link to the notebook on master
in the
relevant documentation in /doc
, e.g.,
https://mybinder.org/v2/gh/RobotLocomotion/drake/master?filepath=tutorials/notebook.ipynb`