Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.23 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.23 KB

Sample Jupyter Notebook for MyBinder.org

This repo includes a Jupyter Notebook named binder-example.ipynb which contains two cells:

  • Use NumPy to load some matrices from a data file and use least squares to find a line equation to fit the data. Then plot the data and the line equation.
  • Use SymPy to compose a function and find its derivative. Then plot the function and its derivative.

Deploying this GitHub repo to MyBinder.org:

  1. Go to https://mybinder.org
  2. Add the GitHub repo URL
  3. Press Launch

The binder-example Binder will then be launched on the MyBinder.org site. This process can take a few minutes while it creates a Docker image and spins up a Kubernetes cluster. When it's ready students can create their own instances by visiting a URL with the following form:

https://mybinder.org/v2/gh/github-user/binder-example/master

where github-user is the account holding the GitHub repo.

NB: if you need to view the Jupyter notebook locally, then go to the directory containing the notebook and run jupyter lab. This will launch a local web server and redirect your browser to a web page containing the notebooks in the current directory. You can also create notebooks from this web page.