Jupyter Notebook(原IPython Notebook)安装——Udacity学习笔记

来源:互联网 发布:班班通教学软件下载 编辑:程序博客网 时间:2024/06/09 23:41


Anaconda是基于Python的科学计算环境,Anaconda中自带有Jupyter Notebook


1、下载Anaconda。https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
Anaconda3-*-Linux-x86_64.sh

2、安装Anaconda
sudo bash Anaconda3-*-Linux-x86_64.sh

3、配置远程访问(默认只能localhost访问)
3.1生成配置文件
$jupyter notebook --generate-config
3.2生成密码
ipython
In [1]: from notebook.authimport passwdIn [2]: passwd()Enter password: Verify password: Out[2]:'sha1:ce23d945972f:34769685a7ccd3d08c84a18c63968a41f1140274'
3.3修改默认配置文件
vim ~/.jupyter/jupyter_notebook_config.py 
c.NotebookApp.ip='*'c.NotebookApp.password = u'sha:ce...刚才复制的那个密文'c.NotebookApp.open_browser = Falsec.NotebookApp.port =8888 #随便指定一个端口
4、启动jupyter notebook
jupyter notebook

5、浏览器访问
http://192.168.0.150:8888

配置远程访问(方法二):使用ssh隧道:
ssh zlong@192.168.0.104 -L 192.168.0.104:4444:127.0.0.1:8888

清华大学镜像地址:
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/


更多学习笔记:http://blog.csdn.net/jidebingfeng/article/details/78014366











阅读全文
0 0
原创粉丝点击