Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fomightez/8464566df91a757271861b9224902edb to your computer and use it in GitHub Desktop.
Save fomightez/8464566df91a757271861b9224902edb to your computer and use it in GitHub Desktop.
Launch VPython Binder with Seaborn Support
  • Go to my fork of the VPython Binder repository in your browser.

  • Click on the Binder on the bottom of that page.

  • That will take you to a new page and trigger deploying version of the jupyter notebook environment from the correct repository. You shouldn't need to do anything as this takes place; you can watch the progress bar roughly in the middle of the screen, just below the Launch button. It may take about a minute. After it boots up, it should bring you to the dashboard that will look like below

zexample_dashboard.png

  • Select New from the right side and then select to open either Python 3 or VPython notebook from the drop-down menu that will look something like below. It doesn't matter which one you choose at this time. (There probably will no longer be a choice for Python 2 in the drop-down menu.)

zpython_choices_list_annotated.png

  • Now you can paste your code in the cell and then you should be all set to run the cell. To run the cell you can hit shift-enter to run it. Alternatively, click on the "Play" button [►|] on the toolbar just above the notebook or select Cells > Run in the notebook menu.

  • If you see a note about WebGL not working in your browser and are using Chrome, try activating graphics acceleration under advanced settings ( Menu > Settings > Show Advanced Settings > System menu), as instructed here. You'll need to restart the browser after this.

  • See here for dealing wiht the generated data.

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