- Notifications
You must be signed in to change notification settings - Fork16
Description
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.