There are two options for working with PyCharm on the cluster: Either, using the PyCharm that is installed on the cluster, or by configuring remote access to the cluster on a local installation of PyCharm (this only works with Pro version).
To use the preinstalled PyCharm:
srun -n1 --mem=8G --time=2:00:00 --pty $SHELL
(You can change the number of cores, amount of memory and time limit according to your needs.). This will let you run PyCharm on a cluster node.pycharm