There are two options for working with Pycharm on the cluster:
- The installed Pycharm on the cluster
- Configuring remote access to the cluster on a local installation of Pycharm (works only with Pro version).
- Connect to the cluster with X11 forwarding as explained here.
- Allocate resources for interactive work on the cluster with srun command:
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.
- Once you get a shell on one of the cluster nodes you can start Pycharm by running this command:
pycharm
After editing and debugging the script with Pycharm use sbatch to run your Python script.