Introduction to Binder

Overview

Teaching: 10 min
Exercises: 10 min
Questions
  • How can we share Jupyter Notebook so they are interactive, can be run, and modified?

  • What does it mean for code to “depend” on software?

  • How can we explicitly define the dependencies for our code?

Objectives
  • Create a shareable interactive binder for your online Jupyter notebooks.

  • Create a requirements file listing dependencies for the notebooks in your repository.

Sharing an interactive repository with Binder

Authors: Chris Holdgraf, M Pacer

Key Points

  • Binder provides an environment that runs and interactively serves your Jupyter notebooks.

  • Use requirements.txt to specify dependencies beyond the Jupyter notebook execution environment itself. Typically, this will at least be any package you import in your Python code.