Skip to content

Instantly share code, notes, and snippets.

@yashika51
Last active April 23, 2024 05:55
Show Gist options
  • Save yashika51/58d2b6d8d1048a1d0a9ea5949a8aa7f6 to your computer and use it in GitHub Desktop.
Save yashika51/58d2b6d8d1048a1d0a9ea5949a8aa7f6 to your computer and use it in GitHub Desktop.
Share your jupyter notebooks with nbviewer and Gist

How to share .ipynb files from your computer without using Colab or Binder?

The most easiest way to share the .ipynb files without using Colab or Binder is by using Gist+nbviewer.

nbviewer helps you to share your jupyter notebooks as static sites. Follow these steps to share notebooks as url:

  • Find the notebook you want to share and open it with notepad.
  • Copy the raw code from there

image

  • Go to https://gist.github.com/ and create new gist
  • Name your gist : anything.ipynb, paste the code and create public gist

image

image

  • Yay! your jupyter notebook is ready to share. Copy the url and share your notebook with others!

image

@chienhsiang-hung
Copy link

thank you for sharing

@gozzoo
Copy link

gozzoo commented Feb 17, 2024

I could just share the gist url, why would do I need Binder?

@MustafaJafar
Copy link

MustafaJafar commented Feb 26, 2024

Thank you for sharing.
I found out that it works find on GH as it uses nbviewer by default.
Here's an example.

https://gist.github.com/MustafaJafar/c35745d064e467e5483912091e0ad912

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