Skip to content

Instantly share code, notes, and snippets.

@parente
Last active September 12, 2021 14:40
Show Gist options
  • Save parente/3675d82eae802db2c011037033d614a5 to your computer and use it in GitHub Desktop.
Save parente/3675d82eae802db2c011037033d614a5 to your computer and use it in GitHub Desktop.
Jupyter Tidbit: Launch Notebook on Binder without leaving your browser

Summary

You can launch a temporary Jupyter Notebook server in the cloud with any pip or conda packaged libraries preinstalled using the GitHub Gist and Binder web UIs.

  1. Visit https://gist.github.com/.
  2. Click New Gist in the top right
  3. Enter requirements.txt as the filename (or environment.yaml if you prefer conda).
  4. Add libraries you wish to use in your notebook server (e.g., pandas, altair).
  5. Click Create Public Gist.
  6. Visit https://mybinder.org/.
  7. Select Gist from the dropdown.
  8. Enter your gist username/gistid.
  9. Click Launch.

Example

When I add the requirements.txt file below to a new gist, enter parente/3675d82eae802db2c011037033d614a5 into the binder web UI, and click the launch, here's the result:

Binder

altair
pandas
vega_datasets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment