Setup Jupyter LabΒΆ
Let us setup Jupyter Lab on Ubuntu VM. This will also facilitate you to understand firewall configuration in GCP.
Create Python based virtual environment -
python3 -m venv demojlActivate virtual environment -
source demojl/bin/activateInstall required dependencies for Jupyter Lab -
pip install jupyterlabLaunch Jupyter Lab -
jupyter lab --ip 0.0.0.0At this time, you will not be able to access Jupyter Lab
Go to firewall and open the port using GCP Web Console
Now enter the ip address and port number to access the Jupyter Lab UI.