Reputation: 519
I am trying to run scripts on a remote server with DataSpell, so I am trying to configure a remote interpreter.
I follow these instructions and I get the error
Cannot Save Settings:
SSH Python x.x.x user@IP : Python x.x.x
(path/to/interpreter) can't be used as a workspace interpreter
As a path to the interpreter I have used the .../bin/python
file that is created in a virtual environment. I have tried virtual environments created both with conda
and venv
. I have also found this, but I cannot understand the solution clearly.
Any ideas?
Upvotes: 1
Views: 1897
Reputation: 1168
Another wrinkle with this issue: It's possible for DataSpell to open a project folder as a "new" workspace. If you do this, it will interpret the project as a workspace itself, and throw this error.
Note that the filesystem looks the same either way: It's about which workspace file is opened, not how the filesystem is organized.
To make sure you have a workspace open, check the dropdown in the upper left (to the left of the git branch name), and make sure a workspace is selected. The folder icon in the far left menu should also say something like "workspace".
Once you make sure you have a workspace open, that itself has a local interpreter, you can switch to a project-specific interpreter successfully.
Upvotes: 0
Reputation: 519
It appears that Dataspell can have different interpreters for its workspace and projects or notebooks that are opened in the workspace.
I right-clicked the project folder in the Project window, and selected a remote interpreter just for the project. This is what the second source that I posted on my OP says. This works fine.
Upvotes: 3