从远程IPython笔记本服务器检索文件? [英] Retrieving files from remote IPython notebook server?

查看:195
本文介绍了从远程IPython笔记本服务器检索文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我不想向我的远程IPython笔记本服务器的用户发出SSH访问权限。有没有办法让用户浏览非.ipynb文件并下载它们?

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?

推荐答案

你可以使用内置的FileLink FileLinks

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

上面的代码生成:

./
some_python_file.py
some_xml_file.xml
some_ipynb_file.ipynb

以上三项是您可以点击下载的链接。

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

点击此处查看ipython.org的示例

这篇关于从远程IPython笔记本服务器检索文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆