Connecting to JupyterLab from a local IDE
DataSphere allows you to work with projects from any local IDE if it supports the use of remote Jupyter servers. This feature is disabled by default, but the community administrator can enable it in the community settings.
Note
You must have the datasphere.communities.admin
role in the community to enable the remote IDE feature. Only users with the datasphere.community-projects.developer
role or higher can get a link to connect to a project from an IDE.
Here is an example of connecting to a project using Visual Studio Code
-
Open the DataSphere home page
. In the left-hand panel, select Communities. - Select the community your project is in.
- Go to the Restrictions tab.
- Under Project mode, enable the Connect external IDEs option.
- Go to the Projects tab and select your project.
- In the project settings, under General settings, click Edit.
- In the VM configuration for remote connection field, select VM configuration and run the project.
- In the top-right corner, click Share ⟶ Link for external IDE.
- Click Copy link.
- Open an
ipynb
file in Visual Studio Code. - In the top-right corner, click the button with your Python version.
- On the panel that opens, click Select Notebook Kernel ⟶ Existing Jupyter Server.
- Paste the link you get and press Enter.
Once connection is established, all computations will be run in DataSphere. The started VM will be running until you stop it in the DataSphere interface.