How to re-connect Python Console to lost remote SSH session

Currently, I am evaluating PyCharm Professional for potential purchase. Especially remote development will be important for us. I noticed that remote SSH sessions (in scientific mode) might get disconnected from time to time (due to VPN issues on our side or lost internet connection, etc). 

I do still see the session running on the server side, but I am not able to re-connect my local PyCharm Python Console to this session again.

The first few lines in the Console of my session look like this:

/home/myself/.virtualenvs/myproject/bin/python /home/myself/.pycharm_helpers/pydev/pydevconsole.py --mode=client --host=localhost --port=36207 
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/myself/PycharmProjects/myproject/'])

 

How do I re-connect my local Console to this session, which in this case appears to run on the port 36207 on the server?

 

Any help would be appreciated.

1

Hello,

Unfortunately, we don't support reconnecting at the moment.

Here is a relevant thread on YouTrack; it's not precisely about the Python console but partially covers the problem.

Please vote for it to raise its relevance and receive updates regarding its status.

0

That's a pretty big issue BTW>

VScode can reconnect fine.

0

请先登录再写评论。