Passing context variables to view.html.erb

I would like to change the form in view.html.erb based on user selection (launching either a jupyter notebook or R notebook). Is this possible?

You can use conn_params. The trick is to set an environment vairalbe that’ll be written back to the connection.yml file. Then if it’s in the connection.yml (like password or host) you can use it in the view.html.erb.

https://osc.github.io/ood-documentation/latest/how-tos/app-development/interactive/conn-params.html?highlight=conn_params

Thank you! I’ll give this a try.