Thursday, April 5, 2018

Override Default Location of Jupyter Notebook file

This post is continue of  ArcGIS Pro, Conda, Jupyter Setup post. The default location of Jupter Notebook IronPython (*.ipynb) file is   C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 - 
               import os
               print (os.getcwd())


To change the default location of Jypyter notebook script file(*ipynb) you need to configure jupyter_notebook_config.py

1. Genereate jupyter_notebook_config.py from following commandline  - 

                                 jupyter notebook --generate-config


2.  jupyter_notebook_config.py will be created in C:\Users\<UserName>\.jupyter

3.  Open  jupyter_notebook_config.py  and set following:
                 ## The directory to use for notebooks and kernels.
                  c.NotebookApp.notebook_dir = 'C:\JupyterScripts'


ArcGISPro , Jupyter

0 comments :

Post a Comment

 

© 2011 GIS and Remote Sensing Tools, Tips and more .. ToS | Privacy Policy | Sitemap

About Me