1、初识jupyter notebook

ArcGIS Pro中如何使用jupyter notebook

2、如何打开jupyter notebook

安装完ArcGIS Pro就会有jupyter notebook(简称:jupyter)环境,

ArcGIS Pro中如何使用jupyter notebook

ArcGIS Pro是Python3,安装完ArcGIS Pro会自动地将Python3路径写入到环境变量,

ArcGIS Pro中如何使用jupyter notebook

由于jupyter.exe在“C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts”,所以可以直接在Python窗口,输入“jupyter notebook”来启动jupyter。

ArcGIS Pro中如何使用jupyter notebook

但是此时启动的jupyter,在操作过程中新建的文件都是保存在“C:\Users\admin”路径下,如何永久化地固定jupyter工作目录,请往下看:

  • 永久化固定工作目录:

首先使用:jupyter notebook --generate-config 命令生成jupyter的配置文件,这个文件一般在你的系统用户目录下面的.jupyer目录下面:

ArcGIS Pro中如何使用jupyter notebook

打开jupyter_notebook_config.py文件,找到c.NotebookApp.notebook_dir 选项,取消掉注释,并且在后面写入你的固定工作目录,例如:D:\proandarcmap\pyenv

ArcGIS Pro中如何使用jupyter notebook

 

ArcGIS Pro中如何使用jupyter notebook

  • 如何打开jupyter到指定的目录?

在ArcGIS Pro的Python环境通过输入“jupyter notebook”就可以打开它到指定的文件夹目录

ArcGIS Pro中如何使用jupyter notebook

 

 

 

相关文章:

  • 2021-07-07
  • 2021-12-17
  • 2021-04-23
  • 2021-06-22
  • 2021-11-04
  • 2022-12-23
猜你喜欢
  • 2021-08-06
  • 2021-10-17
  • 2023-01-04
  • 2022-12-23
  • 2021-08-03
  • 2021-09-13
相关资源
相似解决方案