• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

o-date/notebooks: jupyter notebooks for use with mybinder

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

o-date/notebooks

开源软件地址:

https://github.com/o-date/notebooks

开源编程语言:

Jupyter Notebook 99.5%

开源软件介绍:

notebooks

DOI

This is a small repository containing all you need to set up jupyter notebooks for use with Mybinder. mybinder.org creates a docker file that it then launches for you in the Jupyter Notebook exectuable environment (jupyterhub). This means, that if you clicked on the binder button below:

Binder

...you'd get a version of this repository as it currently exists. You would then be able to create new python or R notebooks and run the code, writing your analysis and your code together. You could also open a terminal within Jupyter and use git to push any changes you make back to this repository.

Of course, we want you to make changes, add more notebooks, and save them in your own repo. To do that, click on the 'fork' button to copy this repository to your own space. Then, copy the url to your version of the repository and go to mybinder.org and paste the url into the space for 'github repository':

imgur

Make a note of the link for your binder.

Then, edit the README.md file in your repo to change the mybinder URL to your GitHub username. For example:

[![Binder](https://mybinder.org/badge.svg)](http://mybinder.org/v2/gh/o-date/notebooks/master)

will become

[![Binder](https://mybinder.org/badge.svg)](http://mybinder.org/v2/gh/yourgithubusername/notebooks/master)

Commit your change. Then whenever you view your repo you can click on the pink 'launch binder' button and you will get a Juptyer notebook that is connected to your GitHub repo. If you click on 'build logs - show' you'll see the computer working away to launch your environment. Sometimes this fails; just reload and be patient.

Once you're in the notebook environment, you can make new notebooks using R or Python or RStudio. If you find that you're installing lots of packages for R or python, you can preload these in the future by putting the relevant information in a file in your repository called install.R or requirements.txt, respectively. In this repo you can see our example.install.R or example.requirements.txt to see how new packages should be listed. When mybinder launches, it will install those packages automatically if install.R or requirements.txt are present.

When you create new notebooks, you can download them to your local computer (tick the box beside their name on the 'home' screen, then 'download'). Or you can use git to push them to your repository:

  1. open a new terminal in Jupyter in mybinder by clicking on new -> terminal.
  2. Then, git add .
  3. Make a note of why you're pushing changes with git commit -m "message"
  4. Then git push -u origin master. The machine will ask for your username and password.

..and in this way your notebooks are saved to the repository, and thus under version control, so you can collaborate or restore to earlier versions.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap