In Windows 10 cmd.exe
I can start jupyter
in a current directory by following command:
jupyter notebook --notebook-dir="."
The current directory is C:\Users\Евгений\Documents\GitHub\sandbox
However, when I start simply jupyter notebook
in a current directory above my working directory for jupyter is D:/git
:
λ cd
C:\Users\Евгений\Documents\GitHub\sandbox
λ jupyter notebook
[I 14:46:44.273 NotebookApp] The port 8888 is already in use, trying another port.
[I 14:46:44.304 NotebookApp] JupyterLab beta preview extension loaded from D:\Anaconda3\lib\site-packages\jupyterlab
[I 14:46:44.304 NotebookApp] JupyterLab application directory is D:\Anaconda3\share\jupyter\lab
[I 14:46:44.571 NotebookApp] Serving notebooks from local directory: D:/git
Note the last line Serving notebooks from local directory: D:/git
. Where is D:/git
may be coming from? Are there environment variables other than these affecting working directory choice?
- My
%USERPROFILE%/.jupyter
is totally empty. jupyter --config-dir
directs toC:\Users\Евгений\.jupyter
, it is%USERPROFILE%/.jupyter
.
I read various threads about jupyter invoke, in particular:
- this large thread suggests
jupyter notebook
will behave differently incmd.exe
and Anaconda prompt, without further details though - Problems with configuring Jupyter start directory addresses an issue with Windows shortcut, similar to this Windows app start steps
- this post proposes wrapping
--notebook-dir="."
key into a .bat file
My other thought is that %USERPROFILE%
with non-Latin character is not be recongnisable by jupyter
, but %USERPROFILE%/.jupyter
is empty anyways.