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'


Comments

Popular posts from this blog

[Code Snippet] Assert Exception in private methods using PrivateObject

Update WPF Interaction Triggers in from .Net Framework 4.8 to .Net 5

[Code snippet] How to set value of private variable in Unit Test Using Reflection ?