-
Notifications
You must be signed in to change notification settings - Fork 8
Connecting to JupyterHub from VS Code
Don Jayamanne edited this page Sep 19, 2023
·
8 revisions
The Existing JupyterHub Server...
category lists remote JupyterHub servers previously connected. You can also use this option to connect to an existing JupyterHub server, for example http://<ip-address>:<port>/
and paste it in the Enter the URL of the running JupyterHub Server...
option to connect to the remote JupyterHub server and executed code against your notebook using that server.
Note: You will need your username and password/API token to authenticate against the JuptyerHub server.
When staring JupyterHub servers, be sure to:
- Allow all origins in the config, which allows the Jupyter server to be accessed externally
Ensure the settingc.Spawner.args = ['--NotebookApp.allow_origin=*']
is initialized in the JupyterHub config.
See here for more information on configuring JupyterHub.
Once connected, all Jupyter KernelSpecs and active Jupyter sessions will appear on this list.
You can start a new Jupyter session from the server's kernelspec by:
- Running the
Notebook: Select Notebook Kernel
command - Choose
Select Another Kernel
- Choose
Existing JupyterHub Server...
- Select your server