Is there a way to automatically setup remote mapping?
Hello,
I am an AI researcher and I frequently need to quickly setup and test various code published online on github. One issue I face constantly is to quickly create default mapping and python remote interpreter settings.
Currently, this is how I do it every single time I install a project --
a) clone repo on server and local systems
b) create a miniconda environment on server, and point that manually to my remote interpreter path.
c) create an upload / sync configuration by manually adding the path to project folder and it's corresponding server folder.
Steps b) and c) are quite painful most of the times, especially when I just want to quickly try something out. Due to this, I end up using sublime text and attaching the server folder to my home (via sshfs) directly editing the code there.
Some thoughts --
Isn't there a way for pycharm to say automatically detect server folder mappings when I specify my home folder on both sides? It can always prompt before trying to sync, so that nothing goes wrong.
For interpreter mapping, similarly, Pycharm can give a dropdown of miniconda environments available on server instead of needing explicit path each time.
Please let me know if I am missing anything, really appreciate your help!
Please sign in to leave a comment.
Hi,
Unfortunately, PyCharm doesn't support remote conda environment natively, i.e. you need to create a new SSH interpreter and manually point it to the python binary from the env.
Perhaps remote development will be better for your workflow? Since the backend is running on the remote host, it will detect existing conda environments or you can quickly create a new one from the IDE.
Also, no need to setup deployments.