Lesson 17: Launching JupyterLab¶
Method 1: Launch JupyterLab from the desired folder (recommended) Open Anaconda Prompt (or Command Prompt if Jupyter is on your PATH). Change to the folder containing your notebook:
cd "D:\Projects\SAS\Week1"
Method 2: Start JupyterLab in a specific folder from anywhere You can specify the working directory directly:
jupyter lab --notebook-dir="D:\Projects\SAS\Week1"
Method 3: Open an individual notebook directly You can also specify the notebook file:
jupyter lab "D:\Projects\SAS\Week1\Week1_Part1.ipynb"
In [5]:
!jupyter lab --version
4.2.5
Since you're using JupyterLab 4.2.5 (Anaconda on Windows), JupyterLab 4 no longer automatically loads a custom.css file the way the classic Notebook did. Here are the practical options.
Use the "Custom CSS" extension¶
C:\Users\<your_username>\.jupyter\custom\
Create a folder named custom.css in the above folder.
.jp-Notebook {
max-width: 1100px !important;
margin-left: auto !important;
margin-right: auto !important;
}