queezz
queezz

Reputation: 1942

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

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

Answers (2)

hiru007
hiru007

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

queezz
queezz

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

Related Questions