How to setup SSH debugging for Python with Matplotlib

[UNDER CONSTRUCTION]

Motivation: I had to use some specific python modules which are only available in the remote server. I initially used PyCharm, which offers very useful remote debugging over ssh. However, when I used that function, my PyCharm was getting dramatically slow and it eventually froze.

  • WARN - #c.i.c.CredentialStore - User denied access to CredentialAttributes

  • WARN - #c.i.d.PerformanceWatcherImpl - UI was frozen for 25178ms, details saved to /root/.cache/JetBrains/PyCharm2022.1/log/threadDumps-freeze-20220616-221520-PY-221.5787.24-25sec

I also have the option to work on remote desktops using NoMachine/TeamViewer but they are very slow and sometimes it kicks me out. Once it happens, I cannot