Ubuntu 16.04下安装Jupyter Notebook并开启远程访问 January 9, 2018 > 因为电脑在宿舍,所以开一个Jupyter Notebook远程访问还是比较方便测试程序的。 [TOC] # 安装Jupyter ```bash $ pip install jupyter -i https://pypi.douban.com/simple/ ``` # 生成配置文件 ```bash $ jupyter notebook --generate-config # 输出 Writing default config to: ~/.jupyter/jupyter_notebook_config.py ``` 这个配置文件之后会用到。 # 生成远程访问密码 ```bash $ jupyter notebook password Enter password: **** Verify password: **** # 输出 Wrote hashed password to ~/.jupyter/jupyter_notebook_config.json ``` # 允许远程访问 在`~/.jupyter/jupyter_notebook_config.py`配置文件中进行一下配置(取消注释或者直接在文件头添加): ```bash c.NotebookApp.ip='*' ``` 也可以通过`c.NotebookApp.port`修改端口。 # 参考 [1]https://www.jianshu.com/p/444c3ae23035