Anyone know of a Firefox / Chrome plugin to open the current URL in nbviewer?

#1

GitHub’s notebook renderer is pretty old and fairly slow - in many cases, it doesn’t correctly load the notebook at all. nbviewer seems to be much faster.

Has anybody seen a plugin that simply builds the currently-active page on GitHub but instead in nbviewer?

1 Like
#2

Easy to do with Grease/TamperMonkey.

#3

Easy to do as bookmarklet.

#4

I do know about the existence of greasemonkey and tampermonkey, but don’t have much experience writing scripts for them, so this would unfortunately not be easy for me.

I did find this https://github.com/jupyter/nbviewer/issues/93 though I couldn’t figure out how to get either of the two scripts linked in there to work.

#5

For github, s/thing like:

javascript:(function(){window.location='https://nbviewer.jupyter.org/’+window.location.href.replace(“https://github.com”,“github”);})()

Riffed from a minimal bookmarklet generator I built back in the day…! (Also this one)

1 Like
#6

It would be a nice complement to the Open with Binder extension.

2 Likes
#7

I’ve been using open in nbviewer for years, and it has always worked flawlessly!

I’ve always used the Chrome extension, but it is apparently available as Firefox add-on, Safari extension, and bookmarklet as well.

1 Like
#8

ahhh that is exactly what I was looking for!

Thanks so much!

1 Like
#9

I also found https://github.com/iArunava/NoteBook-Buddy/

1 Like