Jupyter

what

Jupiter = Julia + Python + R

Jupyter notebook(http://jupyter.org/) 是一种 Web 应用,能让用户将说明文本、数学方程、代码和可视化内容全部组合到一个易于共享的文档中。

why

  • 将代码和文档结合在一起,更直观的编写人工智能,大数据的代码
  • 分块运行
  • 直接运行shell不需要切换环境
  • so on

how

  1. Download images
1
2
$docker pull jupyter jupyter/scipy-notebook:latest
$docker run -itd --rm -p 1000:8888 -e JUPYTER_ENABLE_LAB=yes -v /home/zehai/jupyter:/home/jovyan/work --name jupyter jupyter/scipy-notebook:latest
  1. docker logs -f container’s ID and find token
1
2
3
4
5
To access the notebook, open this file in a browser:
file:///home/jovyan/.local/share/jupyter/runtime/nbserver-6-open.html
Or copy and paste one of these URLs:
http://896bb1e66101:8888/?token=fda8565a9b5cd5b8c621b45322ee72f716fd7ddea089fb51
or http://127.0.0.1:8888/?token=fda8565a9b5cd5b8c621b45322ee72f716fd7ddea089fb51
  1. more info visit official docs
  2. enjoy (pics powered by cherevero)

3318a2fadaf085f2bee7f0de3b42971c.png