Remote interpreter runs the codes in ~~/remote sources/ instead in the project root.
Hello,
I use the remote interpreter in the Linux server working on the GPU node.
Basically, when I run the code, the code runs very well on the GPU node in the server.
The way how I understand about how to work this is,
1. I connect the remote interpreter with the path to be deployed to.
2. The project in the local is deployed to the path in the server.
3. When I run the code in the local, the server interpreter runs and I can debug the code in the local as like I run the code with the local interpreter.
Here, I have a problem sometime.
Since the server node name is changed every time I run the interactive job in the server, I have to change the host name in the ssh configuration.
When I run the code after setting the remote interpreter, even though the code runs on the remote interpreter, the code running in the local is not the local project root, but ~~/JetBrains/PyCharm2023.3/remote_sources/~xxxxxxx/xxxxxxx/CODES.
This is very annoying because the codes in the remote_sources directory are not updated automatically, so the code in the project root and remote_sources are different.
I checked that the codes in the server is always synchronized with the local project root.
How can I solve this problem?
I want to know what causes this problem.
Thank you in advance :)
请先登录再写评论。