Reputation: 1942
I have a default directory for my Jupyter Notebooks, and I put it in the Jupyter settings. So by default jupytr lab
command starts my Jupyter where I need it to start.
However, sometimes I work on separate projects, and it is convenient to start Jupyter in a current working directory from a command line.
Is there an easy command to do so?
Similar question: Change IPython/Jupyter notebook working directory
Upvotes: 5
Views: 5707
Reputation: 133
jupyter lab .
Original Answer:
Adding on to @queezz, jupyter lab --notebook-dir=.
works too because .
represents current directory.
Even jupyter lab .
works
Upvotes: 11
Reputation: 1942
I just summarize the answers from the cited similar question here:
jupyter lab --notebook-dir=$pwd
Here $pwd
returns the current directory in both Windows and OS X.
Upvotes: 2