Retrieving files from remote IPython notebook server?

user1234310 picture user1234310 · Jun 26, 2014 · Viewed 10.1k times · Source

If I don't want to give out SSH access to users of my remote IPython notebook server. Is there a way to let users browse non .ipynb files and download them?

Answer

shadanan picture shadanan · Jun 26, 2014

You can use FileLink and FileLinks that are built-in:

from IPython.display import FileLink, FileLinks
FileLinks('.') #lists all downloadable files on server

The code above generates:

./
some_python_file.py
some_xml_file.xml
some_ipynb_file.ipynb

The three items above are links that you can click to download.

Click here for an example from ipython.org