I need the location of jupyter's local directory to use in another script. For example, when starting jupyter, the console prints:
> Serving notebooks from local directory: C:\Users\PC\Documents Somehow, jupyter has set this path as the default local location from which my notebooks are served. It is the "root" of my jupyter environment. How do I find this default setting? Is there a pre-existing file I can parse, or a command I can type?
Among other attempts, I've tried the following:
> jupyter notebook --help-all --NotebookApp.notebook_dir=<Unicode> Default: '' The directory to use for notebooks and kernels. Note: I do not have a config file, nor do I not wish to generate a config file to get this information. For clarity, I am not concerned with changing the directory.
C:\Users\PC\Documentsconstant or does it differ?jupyter-notebook-script.pywhich callsnotebook.notebookapp. There may be code there for parsing the local directory.