Open thvasilo opened 4 years ago
Note that serving the same exact notebook through Voila works, but the interactive aspect of the webapp breaks (i.e. changing values/sliders in the interface has no effect on the output).
So I'm curious as to why Bokeh Server insists on the subprotocol header being bokeh, maybe I should report over there?
Can you try running this locally without SageMaker? It could be that SageMaker itself does some proxying that breaks this too.
Locally this seems to work.
What I did:
panel serve --allow-websocket-origin=localhost:8888 gallery/simple/iris_kmeans.ipynb
(had to add the allow websocket origin because bokeh server was complaining:
Refusing websocket connection from Origin 'http://localhost:8888'; use --allow-websocket-origin=localhost:8888 or set BOKEH_ALLOW_WS_ORIGIN=localhost:8888 to permit this; currently we allow origins {'localhost:5006'}
http://localhost:8888/proxy/5006/iris_kmeans
. The app works as expected.Any ideas on what I could look into for SageMaker. What could be interfering in such a particular way, changing the subprotocol header?
Also having this exact issue still in SageMaker notebooks despite the fixes to jupyter-server-proxy... any ideas for debugging?
Related to PR #180, issue #179
Hello @xhochy , I just tried serving a panel application through
jupyter-server-proxy
on a SageMaker instance (Tornado 6.0.4, jupyter-server-proxy 1.3.2, panel 0.9.5, bokeh 2.0.2) but I got the same error that the linked PR was fixing:Any ideas on what the cause might be and how to fix?