Follow these steps to launch your GPU-enabled JupyterLab environment using Brev.
Wait for your Brev instance to finish building before proceeding.
Copy and paste the “Install the CLI” command from your Brev instance page into your terminal.
Under the “Open a terminal locally” section, copy your brev shell <instance-name> command and run it in your terminal.
Run the following command in your terminal:
cd gpu-python/
Run the following command in your terminal:
docker compose up
Refresh the Brev page, open your notebook, and enjoy!
If you try to start Jupyter but get an error like:
Error: [Errno 98] Address already in use It means another process is already using port 8888. This is usually caused by a Jupyter service that’s running automatically in the background.
Follow these steps to diagnose and fix the issue:
Run:
lsof -i :8888
Example output:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
jupyter-lab 29753 ubuntu 6u IPv4 129739 0t0 TCP *:8888 (LISTEN)
If Jupyter is being started automatically by systemd, stop it with:
sudo systemctl stop jupyter
sudo systemctl disable jupyter
lsof -i :8888
If nothing shows up, the port is now free.