-
Notifications
You must be signed in to change notification settings - Fork 287
Connecting to a remote Jupyter server from vscode.dev
Rich Chiodo edited this page May 10, 2022
·
11 revisions
You can connect to a remote Jupyter server from vscode.dev by using the 'Jupyter: Specify Jupyter server for connections' command.
When this quick pick comes up, pick 'Existing':
On the next step, enter the URI of your Jupyter server:
This should then allow you to pick a kernel from your jupyter server when opening a notebook:
If you're starting this server yourself, there are some special requirements to get it to work in the browser:
- It needs an 'allow_origins' or 'allow_origins_pat' to allow a browser to connect. This should be something like so:
jupyter notebook --no-browser --NotebookApp.allow_origin_pat=https://.*vscode-cdn\.net
orjupyter notebook --no-browser --NotebookApp.allow_origin=*
.https://vscode.dev
doesn't work because vscode-dev doesn't run extensions at the same URL as the UI. This is a security measure to prevent extensions on different tabs from talking to each other. - If you're using https, the certificate provided must be trusted by the browser. The jupyter extension can't tell when this is the case, so the best way to enable this is to just open the jupyter server's URI in the browser and it will tell you if it's trusted or not. You can then trust the certificate or not. Here's an example of what happens when you run the jupyter server with an untrusted certificate:
- Contribution
- Source Code Organization
- Coding Standards
- Profiling
- Coding Guidelines
- Component Governance
- Writing tests
- Kernels
- Intellisense
- Debugging
- IPyWidgets
- Extensibility
- Module Dependencies
- Errors thrown
- Jupyter API
- Variable fetching
- Import / Export
- React Webviews: Variable Viewer, Data Viewer, and Plot Viewer
- FAQ
- Kernel Crashes
- Jupyter issues in the Python Interactive Window or Notebook Editor
- Finding the code that is causing high CPU load in production
- How to install extensions from VSIX when using Remote VS Code
- How to connect to a jupyter server for running code in vscode.dev
- Jupyter Kernels and the Jupyter Extension