Running the examples in your browser#
Every example in the examples gallery can be run online, with nothing to install.
Binder#
Click the launch binder button at the bottom of any example page. This opens the example as a notebook on mybinder.org, with WhoBPyT already installed. Starting can take a few minutes, especially the first time after the documentation is updated. Binder sessions are free, run on CPU with limited memory, and are deleted when you close them, so download anything you want to keep.
Google Colab#
Google Colab also runs notebooks for free, with optional GPU access, and lets you save your work to Google Drive.
Open the example you want in the gallery, scroll to the bottom, and click Download Jupyter notebook.
In Colab, choose File > Upload notebook and select the downloaded
.ipynbfile.Add a new cell at the top of the notebook and run it to install WhoBPyT:
!pip install "whobpyt[examples] @ git+https://github.com/GriffithsLab/whobpyt.git"
This takes a few minutes. If Colab asks you to restart the session afterwards, do so, then carry on from the next cell.
Run the rest of the notebook as normal. Example data are downloaded automatically the first time they are needed.
To use a GPU, choose Runtime > Change runtime type and select a GPU before you run the notebook.