The UNICORE REST API can be used to access and use a supercomputer from within a Python script. It is also possible to use it from an IPython notebook in the Collaboratory.
Please note: HBP users do not automatically have access to the supercomputers integrated in the HPAC Platform, but they need to apply for computing time first. After a successfully applying, the HPC accounts are automatically linked to the user’s HBP OIDC account (i.e. to the Collaboratory account) so that the UNICORE Portal and the UNICORE REST API can be used seamlessly from the Collaboratory.
Documentation of the UNICORE REST API: https://sourceforge.net/p/unicore/wiki/REST_API/