VNC and node apps in single app?

Hello,

is it possible to have VNC (e.g. Matlab) and node (e.g. Jupyter) in a single app, which based on a pull down option in form.yml chooses the appropriate route through the erb rendered files (template/script.sh.erb, view.html.erb, etc).

I have attempted this, starting from the node app (= Jupyter), and putting the VNC launch button to the view.html.erb, but the VNC session is not being connected to. I am suspecting I am missing some internals of the VNC apps.

Thanks,
Martin

Answering my own question - it’s possible. I did not have the right websockify/VNC ports/passwords in the view.html.erb and defined own port (for the node servers) in template/before.sh which messed up one of the VNC app ports.

Bottom line, completely separate each of the apps part via the erb parsing. Example is at OOD-class-apps/BIOL6500 at master · chpc-uofu/OOD-class-apps · GitHub.