Connecting to a project JupyterLab from a local IDE
DataSphere enables you to work with projects from any local IDE which supports the use of remote Jupyter servers. This feature is disabled by default; however, the community admin 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 for connecting 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 Connect external IDEs.
- 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 the VM configuration and click Save.
- Click Open project in JupyterLab and wait for the project to load.
- 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 copied and press Enter.
Once connection is established, all computations will run in DataSphere. The started VM will be running until you stop it in the DataSphere interface.