每次更换电脑或者要新建一个Jupyter Notebook环境,都要查找好几个网站,去配置好开发环境,记录一下全部配置,之后就不用频繁使用搜索引擎,却只为了寻找几句配置。html
Jupyter Notebook是个开源的Web应用,能够建立包含代码、公式、可视化及叙事文本的共享文档;git
jupyter notebook --generate-config
复制代码
jupyter notebook password
复制代码
vim ~/.jupyter/jupyter_notebook_config.py
修改如下三个节点的配置,并把开头的 # 注释去掉
c.NotebookApp.ip = '*' # 开启全部的IP访问,便可使用远程访问
c.NotebookApp.open_browser = False # 关闭启动后的自动开启浏览器
c.NotebookApp.port = 8888 # 设置端口8888,也可用其余的,好比1080,8080等等
复制代码
jupyter notebook
复制代码
在浏览器输入http://hostip:8888,hostip能够是本地地址,局域网地址,也能够是远程服务器地址(好比阿里云或者AWS或者其余云服务器厂商的VPS外网地址)。github
pip install jupyterthemes
# list available themes
# onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd
jt -l
# select theme...
jt -t chesterish
复制代码
详细步骤还能够查看该工程的github主页:github.com/dunovank/ju…shell
原文连接:c1rew.github.io/2019/05/12/…编程