How to start Jupyter Lab in current directory without changing defaults?

Question:

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

Asked By: queezz

||

Answers:

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.

Answered By: queezz

TLDR: jupyter lab .


Original Answer:
Adding on to @queezz, jupyter lab --notebook-dir=. works too because . represents current directory.
Even jupyter lab . works

Answered By: hiru007