How to change the working directory of Jupyter and Jupyter Lab on Windows environment

  1. Open cmd (or Anaconda Prompt) and run jupyter notebook --generate-config.
  2. This writes a file to C:\Users\username\.jupyter\jupyter_notebook_config.py.

3. Copy the link and browse to the file location and open it in an Editor