Interactively use Kaya with JetBrains Gateway
https://www.jetbrains.com/remote-development/gateway/
Last updated
https://www.jetbrains.com/remote-development/gateway/
Last updated
Like the VSCode Remote SSH function, JetBrains also provides similar tools.
Use which tool to do development will be up to you, but I do suggest new beginners to use Jetbrain products to start, as their intelligence engine will help you learn how to implement your code with best practice. For example, if you have named your variable duplicated with a global variable, which potential will introduce a ghost bug for you later, it will recommend you not to do that. And some pre-check of the syntax can help you to reduce the bugs.
VSCode do can achieve the same functionalities with proper setup, however, the beneifit I mentioned above are all out-of-box, which is the reason why I say new beginners should use it.
As long as you are a student, you can apply for a free educational license to start with.
And when you graduate with good practice regarding programming, you may want to switch to vscode.
After you have Jetbrain Gateway installed, you can open it and create a connection via SSH:
After that you will see something like this:
And then you can create a project via different IDE they provide, for us, most common one is PyCharm.
Select the IDE you want, and then select the project directory, you can start the IDE and do the development.
At this stage, there will be not much difference between use the interface and your local PyCharm
As we mentioned before, when you doing some edit here with the code, because of the storage setup of the Kaya, the changes will be reflected on the compute node.
In the IDE terminal, type the command above to request a P100 node (You can adjust the command to use your specific required GPU)
Thenyou should be able to change the code in IDE and then run the latest changes in the terminal to verify your changes now.
You can also queue the job via sbatch
here, and check the results from the left file list panel.