启动jupyter

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wiborgite/article/details/85112528

相关命令

使用普通用户启动:jupyter notebook
使用root用户启动:jupyter notebook --allow-root

注意:jupyter会将执行启动命令的目录作为其工作目录(即ipynb的存储与读取目录),因此需要先切换到相关的工作目录下,其启动jupyter。

启动示例

例如,通过anaconda安装的一个jupyter环境如下所示:
jupyer命令所在目录:/root/anaconda2/bin/jupyter
工作目录:/root/.jupyter

[root@master .jupyter]# pwd
/root/.jupyter
[root@master .jupyter]# ll
total 68
-rw-r--r--. 1 root root  2491 Dec 19 18:02 GDAL_OGR.ipynb
-rw-r--r--. 1 root root  6037 Dec 19 01:54 Geopy.ipynb
-rw-r--r--. 1 root root 29070 Dec 18 21:59 jupyter_notebook_config.py
-rw-r--r--. 1 root root    26 Dec 19 17:55 migrated
-rw-r--r--. 1 root root   912 Dec 18 21:44 notebook_cert.key
-rw-r--r--. 1 root root   875 Dec 18 21:43 notebook_cert.pem
-rw-r--r--. 1 root root 11698 Dec 18 23:43 Shapely.ipynb


则启动过程如下:
cd /root/.jupyter
/root/anaconda2/bin/jupyter notebook --allow-root

猜你喜欢

转载自blog.csdn.net/wiborgite/article/details/85112528