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

BioDepot/nbdocker: A Jupyter Notebook extension for Docker

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

开源软件名称:

BioDepot/nbdocker

开源软件地址:

https://github.com/BioDepot/nbdocker

开源编程语言:

JavaScript 80.3%

开源软件介绍:

Docker Pulls Docker Image

GitHub release

nbdocker

The nbdocker is an extension that allows for different Docker containers to be executed inside Jupyter notebooks. Each Docker container encapsulates its individual computing environment, thus allows different programming languages and computing environments to be included in one single notebook, provides the user to document the code as well as the computing environment.

GENERAL INFORMATION

Docker image: https://hub.docker.com/r/biodepot/nbdocker/

Pre-print: https://www.biorxiv.org/content/early/2018/05/02/309567

Authors: Jiaming Hu, Ling-Hong Hung, Ka Yee Yeung

Affiliation: School of Engineering and Technology, University of Washington Tacoma, WA, USA

Correspondence: [email protected]

Installation

A pre-installed Docker image was provided which contains Jupyter notebook and nbdocker as well.

docker pull biodepot/nbdocker

To run the nbdocker container:

docker run -it -p 8888:8888 -v /var/run/docker.sock:/var/run/docker.sock -v <your local path>:/home/jovyan/work --privileged --group-add root biodepot/nbdocker

You will then be given a URL. Copy/paste this URL into your browser and you can use nbdocker in your browser.

Development Install

The installation instructions below are intended for developers who want to manually install the nbdocker for the purposes of development.

Basic environment

In order to run nbdocker on your local machine, you will need:

Python 3 >= 3.5.0

docker-py >= 3.0.0

If you don't have Jupyter Notebook installed, you can install it by running:

python3 -m pip install jupyter

Install nbdocker

Clone repo

git clone https://github.com/jmhoo/nbdocker.git

Install nbdocker package

cd nbdocker
python3 -m pip install -e . --user 

Note that there is a period (.) between -e and --user

Jupyter extension

Finally, install server extension and notebook extension for Jupyter:

jupyter serverextension enable --py --user nbdocker
jupyter nbextension install nbdocker --user
jupyter nbextension enable nbdocker/main --user

Demo on Youtube

nbdocker video

Troubleshooting

If you get an internal server error, you can try to run "sudo chmod 666 /var/run/docker.sock"

ACKNOWLEDGEMENTS

We would like to thank Dr. Wes Lloyd for helpful discussions in group meetings. We would like to thank Mr. Fang Chen for researching the different Jupyter magic commands and working on earlier implementations of the saving docker histories. L.H.H. and K.Y.Y. are supported by NIH grants U54HL127624 and R01GM126019. J.H. is supported by U54HL127624. We would also like to thank the Center for Data Science and the Institute of Technology at University of Washington Tacoma for the purchase of a computer server.

Bioinformatics Group University of Washington Tacoma




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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