5

Im trying to introduce IPyhton notebook in my work. I want others colleagues in the local network to be able to see notebook Im sharing with them in their broswer or other solution.

Following this question, I understood that the only solution I will be satisfied with would be viewing notebooks in nbviewer and not in HTML like solutions.

Question is, how doI install nbviewer and how do I set it up to accept viewing request in the LAN. the instructions listed here are not working anymore since nbconvert is now a part of IPython and the code is no longer in github.

Does anybody know how to do that?

Community
  • 1
  • 1
idoda
  • 6,248
  • 10
  • 39
  • 52

1 Answers1

1

Nbviewer could be installed locally same as before, it will just pick-up the nbconvert library from IPython 1.0 if it is installed on the same machine.

Supposing your ipynb are availlable on a local address, (Eg: http://local-comany/foo.ipynb) and nbviewer is hosted on (http://local-nbviewer/) then open the url http://local-nbviewer/url/local-company/foo.ipynb will work. (it will also work on notebook public on the internet)

The only requirement is that your nbviewer is hosted on a server that has access to the ipynb you like to share. For any url of type : http://local-nbviewer/url/<something>.ipynb nbviewr will try to fetch http://<something>.ipynb and render it.

Matt
  • 27,170
  • 6
  • 80
  • 74
  • Running python app.py from the command line returns an exeption on the following line of code: "from nbconvert.converters.template import ConverterTemplate". It seems it still looking for the nbconvert... – idoda Sep 09 '13 at 17:18
  • Are you using last version ? Try `python gist.py` – Matt Sep 10 '13 at 06:46
  • Can nbviewer open local files on the computer? – arcticfox May 05 '14 at 20:06
  • There are (or at least was) debug options to do so. – Matt May 06 '14 at 20:08
  • I recommend using the docker container at https://github.com/jupyter/nbviewer. Took me 5 min to set up and works like a charm! – thias Jan 21 '15 at 09:54