Integrations

Visual Studio Code

../_images/vscode_graphic.png

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 softwares and API’s available through qBraid Lab.

Get access token

  1. Log in to lab.qbraid.com.

  2. Access your Control Panel by clicking File –> Hub Control Panel.

../_images/0_file_control_panel.png

  1. Navitage to the ‘Token’ page by clicking Token in the top bar.

../_images/1_top_bar_token.png

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

../_images/2_request_token.png

5. 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.

../_images/3_copy_token.png

Connect VS Code to Lab

  1. Open the command palette in VS Code (Cmd+Shift+P on MacOS, Ctrl+Shift+P elsewhere).

  2. Select Jupyter: Specify Jupyter Server for Connections, and then select Existing.

../_images/4_jupyter_server.png

../_images/5_existing_uri.png

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

../_images/6_example_user.png

Your Lab username is generated from the email address associated with your qBraid account.

Note

If your account email uses special characters, your Lab username might be escaped, i.e. modified, from your raw email address. You can verify this by looking at the URL you get after launching Lab; your username will be appear right after .../user/.

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

../_images/7_notebook_kernel.png

../_images/8_select_kernel.png

See also