问题描述
我制作了一个jupyter笔记本,可以读取hdf5文件并使用某些功能来分析数据.我想将此jupyter笔记本放在包含不同hdf5文件的服务器上,并使其可用于在其他地方工作的人们.功能的一个例子是查看样品中某些基因的表达.那些人可以打开这个jupyter笔记本并添加要查看的特定基因的列表.我正在看JupyterLab,但可以看到人们可以阅读和修改笔记本.我希望即使他们对其进行了修改,完成后笔记本仍会像打开前一样.您认为有可能这样做吗?我认为我可以使用只读"在本地完成此操作,但是我不知道如何在jupyterLab上执行此操作.
I made a jupyter notebook that can read hdf5 files and use some functions to analyze the data. I would like to put this jupyter notebook on a server containing different hdf5 files and make it available for people who are working in other places. An exemple of functions would be to see the expression of some genes in a sample. Those people could open this jupyter notebook and add a list of specific genes to look at.I am looking at JupyterLab, but I can see that people can read and modify the notebook. I would like that even if they modify it, when they finish, the notebook is as it was before they opened it. Do you think it is possible to do that ? I think I could do it locally with "read-only" but I don't know how to do it on jupyterLab.
我是与服务器相关的新手.非常感谢您的帮助和建议.
I am a newbie for things related to servers. I will really appreciate your help and suggestions.
非常感谢:)
推荐答案
一些建议:
您可以通过诸如GitHub之类的代码共享资源提供笔记本,并让他们克隆/复制/下载使用他们认为合适的资源,以使用自己的资源.这样可以确保他们不会更改您的源笔记本.而且,您不必担心计算资源,因为他们可以在自己喜欢的集群或云中心等任何地方运行它.
You could supply the notebook via a code sharing resource like GitHub and let them clone/copy/download use it as they see fit via their own resources. This insures they aren't changing your source notebook. And you don't have to worry about computational resources because they can run it where they prefer such as on their own cluster or at a cloud center.
通常,我建议您在 https://mybinder.org/上使用MyBinder项目,以了解您的描述因为它使您可以共享在远程服务器上启动的临时活动会话.您可以使用笔记本和数据来设置Github存储库,或者通过一种方法来检索笔记本中内置的数据,并且在临时会话启动时,用户可以浏览笔记本.这样,他们可以扩展和修改并运行自己的数据,而无需更改源笔记本.但是,资源是免费的,因此资源有限,请参见此处.
Typically, I'd suggest the MyBinder project at https://mybinder.org/ for what you describe as it lets you share temporary active sessions that launch on remote servers. You set up a Github repository with notebooks and the data or a way to retrieve the data built in the notebook and when the temporary session launches, users can work through your notebook. This way they can extend and modify and run their own data and not change your source notebook. However, the resources are limiting as it is free, see here.
示例:
- solve for sediment transport
- Resolving the measurement uncertainty paradox in ecological management
- A quick introduction to RNAseq
- bendit-binder
- blast-binder
我见过其他人使用Code Ocean,请参见示例此处.
I've seen others use Code Ocean, see an example here.
还有其他一些由国家/政府资助的中心,它们可以托管类似的服务和资源,并可以与他人共享. CyVerse 是一种现在在美国和其他地方运行的软件,例如 CyVerseUK 与Earlham研究所和在其他地方.他们通过其 VICE应用提供笔记本发现环境.与免费的公共MyBinder服务相比,它们的资源可提供更多的计算能力和存储空间.
There are other national/government-funded centers that allow similar hosting of services and resources that can be shared with others. CyVerse is one that is now running in the United States and several place, such as CyVerseUK in association with the Earlham Institute, and elsewhere. They offer notebooks to be served via their VICE apps in their Discover environment. Their resource allows more computational power and storage than the free, public MyBinder service.
这篇关于在服务器上共享Jupyter笔记本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!