Connect to qBraid Lab Environments
Connecting your qBraid Lab account to Visual Studio Code enables running Jupyter Notebooks on your local machine while still accessing the pre-packaged environments, compute resources, and other software and API’s available through qBraid Lab.Get access token
- Log in to lab.qbraid.com.
- Access your Control Panel by clicking File -> Hub Control Panel.

- Navigate to the ‘Token’ page by clicking Token in the top bar.

- Type in a description for the new token you want, and click Request new API Token.

- Copy your token and keep it somewhere safe. You should treat this like a password to your qBraid Lab account, and revoke it from the same page when you are no longer using it.

Connect VS Code to Lab
- Open the command palette in VS Code (
Cmd+Shift+P
on MacOS,Ctrl+Shift+P
elsewhere). - Select Jupyter: Specify Jupyter Server for Connections, and then select Existing.


- Construct your notebook server URL with the following template:
https://lab.qbraid.com/user/<your-lab-username>/?token=<your-token>
.

.../user/
.
- Create or open a new notebook, and select a notebook kernel from any of your installed and active qBraid Lab environments.

