I would like to change my jupyter notebook working directory, how should I proceed?
If it is possible, I also want to keep the current working directory.
You can change it using --notebook-dir=
jupyter notebook --notebook-dir=$HOME/Documents/MyProject
and like always use it without --notebook-dir= to get it run in current working directory:
jupyter notebook
If you always work on same directory then create an alias:
alias my_jupyter='jupyter notebook --notebook-dir=$HOME/Documents/MyProject'
Now when you run my_jupyter "Jupyter" will be run at $HOME/Documents/MyProject.
alias ...line directly, and I do not need to place thisalias ...line into~/.bashrc, is it right? – Sheng Bi Oct 04 '18 at 13:17.bashrc. – Ravexina Oct 04 '18 at 13:41