HXW
HXW

Reputation: 83

How to use JupyterLab in Visual Studio Code

is there a way to use JupyterLab in VS Code? I know that VS Code provides the Jupyter Notebook extension. However, I need to connect to another server remotely......

Any guidance will be appreciated!

Upvotes: 8

Views: 35403

Answers (1)

MingJie-MSFT
MingJie-MSFT

Reputation: 9219

You can offload intensive computation in a Jupyter Notebook to other computers by connecting to a remote Jupyter server. Once connected, code cells run on the remote server rather than the local computer.

To connect to a remote Jupyter server:

  1. Select the Jupyter Server: local button in the global Status bar or run the Jupyter: Specify local or remote Jupyter server for connections command from the Command Palette (Ctrl+Shift+P).

Specify remote Jupyter server

  1. When prompted to Pick how to connect to Jupyter, select Existing: Specify the URI of an existing server.

Choose to connect to an existing server

  1. When prompted to Enter the URI of a Jupyter server, provide the server's URI (hostname) with the authentication token included with a URL parameter. (If you start the server in the VS Code terminal with an authentication token enabled, the URL with the token typically appears in the terminal output from where you can copy it.) Alternatively, you can specify a username and password after providing the URI.

Prompt to supply a Jupyter server URI

For guidance about securing a notebook server, refer to the Jupyter documentation.

Upvotes: 7

Related Questions