You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using the jetbrains module in a jupyter workspace on coder, with the aim of working remotely with my PyCharm installation.
Although I am able to connect to the workspace, I cannot set the correct Python Interpreter automatically when starting the remote session with PyCharm.
By default, PyCharm was searching in usr/bin/python3.10, which is not the correct path, so I've set the following environment variables in the jupyter template for the location of the interpreter:
env {
name = "PYCHARM_PYTHON_PATH"
value = "/opt/conda/bin/python3.10"
}
env {
name = "PYTHONPATH"
value = "/opt/conda/bin/python3.10"
}
With this change, the right interpreter gets found, BUT it doesn't get set, as I receive a message "No Python interpreter configured for the project".
As you can see from the screenshot, the interpreter is not configured, but in the bottom right it is indeed found and, once I set it manually, everything works as expected.
What I want to archieve is to set it automatically when starting the session, because not everyone is aware that they should set the interpreter manually and a user may think there is something wrong. Furthermore, the warning message from PyCharm suggests the wrong path for the interpreter (I guess it uses the default one).
Is there a way to achieve this goal? Am I doing something wrong or is this scenario not supported?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Sorry for not coming to this early. It was, for some reason, overlooked.
Can you get it right when connecting directly via SSH to coder.<workspace-name>?
I'm currently using the jetbrains module in a jupyter workspace on coder, with the aim of working remotely with my PyCharm installation.
Although I am able to connect to the workspace, I cannot set the correct Python Interpreter automatically when starting the remote session with PyCharm.
By default, PyCharm was searching in usr/bin/python3.10, which is not the correct path, so I've set the following environment variables in the jupyter template for the location of the interpreter:
With this change, the right interpreter gets found, BUT it doesn't get set, as I receive a message "No Python interpreter configured for the project".
As you can see from the screenshot, the interpreter is not configured, but in the bottom right it is indeed found and, once I set it manually, everything works as expected.
What I want to archieve is to set it automatically when starting the session, because not everyone is aware that they should set the interpreter manually and a user may think there is something wrong. Furthermore, the warning message from PyCharm suggests the wrong path for the interpreter (I guess it uses the default one).
Is there a way to achieve this goal? Am I doing something wrong or is this scenario not supported?
Thanks in advance.
The text was updated successfully, but these errors were encountered: