Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to share Jupyter notebooks [duplicate]

I have a Jupyter hub installed and I was wondering if it is possible to share notebooks among different users.

like image 444
HaniAR Avatar asked Feb 15 '16 13:02

HaniAR


People also ask

What is the best way to share Jupyter notebooks?

Sharing Locally You can export to a variety of formats from within the notebook by navigating to File -> Download As. You'll want to export your notebook as a Jupyter Interactive Notebook ( . ipynb file format) if you'd like the person you're sharing it with to interact with the notebook.

How do you duplicate a notebook in Jupyter?

Notebook 1: — Select multiple cells by holding down Shift and hit Ctrl+c to copy. Notebook 2: — Hit Esc to enter Command mode Ctrl + v to paste.

How do I share my JupyterLab notebook?

Editors are not collaborative by default; to activate it, start JupyterLab with the --collaborative flag. To share a document with other users, you can copy the URL and send it, or you can install a helpful extension called jupyterlab-link-share that might help to share the link including the token.

How do I share a Jupyter Notebook by email?

In order to email your notebook, the notebook must be converted to a plain text format, sent as an attachment to the recipient, and then the recipient must convert it back to the 'binary' notebook format. Email attachments are normally converted to a well-defined MIME (Multi-purpose Internet Mail Extension) format.


1 Answers

You can share a Jupyter notebook is to simply to place it on GitHub (and view it directly) or some other public link and use the Jupyter Notebook Viewer. When privacy is more of an issue then there are alternatives but it's certainly more complex, there's no built in way to do this in Jupyter alone but a couple of options are:

  • Host your own nbviewer GitHub and the Jupyter Notebook Veiwer both use the same tool to render .ipynb files into static HTML, this tool is nbviewer. The installation instructions are more complex than I'm willing to go into here but if your company/team has a shared server that doesn't require password access then you could host the nbviewer on that server and direct it to load from your credentialed server. This will probably require some more advanced configuration than you're going to find in the docs.

  • Set up a deployment script If you don't necessarily need live updating HTML then you could set up a script on your credentialed server that will simply use Jupyter's built in export options to create the static HTML files and then send those to a more publicly accessible server.

like image 98
User0123456789 Avatar answered Oct 06 '22 00:10

User0123456789