jypyter notebook配置
2018-08-23 本文已影响0人
geaus
因为在工作、学习中notebook交互式的python解释器使用很方便,这里简单介绍下jupyter notebook的安装。
安装python3
- 下载
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0a1.tar.xz - 解压
tar xvf Python-3.6.0a1.tar.xz - 编译安装
进入目录 ./configure --prefix=默认目录
make && make install
安装jupyter notebook
- 安装ipython, jupyter
pip install ipython
pip install jupyter - 生成配置文件
jupyter notebook --generate-config - 修改默认配置文件
vi ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip='*' #设置访问notebook的ip,*表示所有IP,这里设置ip为都可访问
c.NotebookApp.open_browser = False # 禁止notebook启动时自动打开浏览器(在linux服务器一般都是ssh命令行访问,没有图形界面的。所以,启动也没啥用)
c.NotebookApp.port =8889 #指定访问的端口,默认是8888。
- 生成密码
jupyter notebook password - jupyter notebook运行notebook