looking to pass some variables in to the streamlit tool that’s running
thanks to https://cdsdashboards.readthedocs.io/ documentation
here’s my jupyterhub config
c.JupyterHub.spawner_class = ‘cdsdashboards.hubextension.spawners.variableusercreating.VariableUserCreatingSpawner’
c.SystemdSpawner.unit_name_template = ‘jupyter-{USERNAME}{DASHSERVERNAME}’
c.JupyterHub.allow_named_servers = True
c.CDSDashboardsConfig.builder_class = ‘cdsdashboards.builder.processbuilder.ProcessBuilder’
from cdsdashboards.app import CDS_TEMPLATE_PATHS
from cdsdashboards.hubextension import cds_extra_handlers
c.JupyterHub.template_paths = CDS_TEMPLATE_PATHS
c.JupyterHub.extra_handlers = cds_extra_handlers
c.VariableMixin.extra_presentation_launchers = {
‘streamlit’: {
‘env’: {‘JUPYTERHUB_COOKIE_OPTIONS’: ‘{“SameSite”: “None”, “Secure”: true}’}
}
}
and in the streamlit side it has some variables… looking for guidance to add flags to the streamlit server
streamlit run my_app.py --server.enableCORS=false
so i want server.enableCORS to be false… not sure how to pass that along…
the issue is that i’m getting a websocket error and that’s probably coming from compression issues?
Uncaught Error: Unsupported state transition.
State: PINGING_SERVER
Event: CONNECTION_TIMED_OUT
at e.value (main.6d25cdf9.chunk.js:2:122553)
at main.6d25cdf9.chunk.js:2:124651
main.6d25cdf9.chunk.js:2 WebsocketConnection WebSocket onerror
i @ main.6d25cdf9.chunk.js:2