There’s no api for starting a session, so you’d need to scrape the web interface to do that or work out what the web interface submits to the pbs queue.
If a session is already running you can get the connection info from the ~/ondemand directory. https://git.nci.org.au/saw562/tools/-/blob/master/ood sketches out how this can be done. I’ve been putting this together mainly for easier vnc access but ./ood ssh should ssh into the most recent session
@aidanheerdegen I had read about the possibility to have OOD services in VSCode browser. I have never used VSCode browser so maybe I’ll check it out.
However, I think most people would still prefer using their local VSCode so I’m gonna look more into this and maybe follow @dougiesquire’s suggestion and contact NCI directly.
I’ll keep you posted.