In our institute, we use OneDrive / Sharepoint from Microsoft to share files with each other. I am also sharing my Jupyter notebooks - with extension *.ipynb - there. Unfortunately, when one clicks on such a file the message "Hmm... looks like this file doesn't have a preview we can show you" appears. In my case I developed my notebooks with python. It's not necessary that my colleagues can run the notebook, but it would indeed be much easier to be able to install a kind of plugin for previewing on the Sharepoint server. Is there any product that can work like this? Otherwise I'll have to always export the file to HTML or so :-(
Asked
Active
Viewed 1,222 times
1 Answers
0
Unfortunately, there isn't any good news so far. Such a plugin seems to be unavailable as yet. For the meantime, I have automated the exporting of the notebooks to HTML on my Windows 10 machine as follows:
For /R .\ %G IN (*.ipynb) do jupyter nbconvert --to html "%G"
For use in a *.bat file, you'll have to double the %-signs.
Dobedani
- 399
- 2
- 15
-
Do you embed it in a sharepoint site using the HTML or do you have to proceed as described in https://stackoverflow.com/questions/31855794/how-can-i-share-jupyter-notebooks-with-non-programmers – Stefan Jan 29 '22 at 13:26
-
1No, please! I just saved my notebooks to a folder on my OneDrive. When I choose "view online", my browser opens and shows the notebooks in a Sharepoint environment. – Dobedani Feb 01 '22 at 14:45