代码改变世界

jupyter 使用

2019-12-27 14:27  brookin  阅读(261)  评论(0编辑  收藏  举报

jupyter 安装

Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言。在本文中,我们将介绍 Jupyter notebook 的主要特性,以及为什么对于希望编写漂亮的交互式文档的人来说是一个强大工具。

python 3.6 环境下

pip install ipython
pip install jupyter
jupyter notebook  // 直接跳转到 web 页面,默认进入展示用户家目录,可先进入指定目标后在运行命令,则打开的是指定目录。

// 指定ip/port 不打开浏览器 启动 jupyter
jupyter notebook --no-browser --port 58082 --ip=0.0.0.0

// 后台启动
nohup jupyter notebook --no-browser --port 58082 --ip=0.0.0.0 > jupyter_notebook_access.log 2>&1 &