You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enables me to start up panel or fastapi in a jupyter or vscode terminal and via reverse proxying access the application.
Unfortunately this does not work with bokeh-fastapi as first reported in holoviz/panel#7277. A partial fix of this issue has been applied in holoviz/panel#7278, but @philippjfr mentioned that rest of fixes probably need to be in bokeh-fastapi.
Please note that depending on the binder server this might work or not work. I've experienced some binder servers catching the "proxy" endpoints and displaying their own web page instead.
bokeh-fastapi-issue.mp4
The text was updated successfully, but these errors were encountered:
I'm developing on a jupyterhub with code server, jupyter-server-proxy and jupyter-code-proxy installed installed.
This enables me to start up panel or fastapi in a jupyter or vscode terminal and via reverse proxying access the application.
Unfortunately this does not work with
bokeh-fastapi
as first reported in holoviz/panel#7277. A partial fix of this issue has been applied in holoviz/panel#7278, but @philippjfr mentioned that rest of fixes probably need to be inbokeh-fastapi
.The problem
In a Jupyterhub (or similar) environment
Create the file
main.py
as described in Running Panel apps in FastAPIrun the below in the "VS Code" terminal
Open the app at https://SOME-DOMAIN/SOME-PREFIX/vscode/proxy/8000/panel1
See issues
The problem is that it tries to find https://SOME-DOMAIN/static/extensions/panel/panel.min.js?v=1f4dc096d58f7d21e3875671aee6f29b120ab84218fa47db2cb53bc9eb5b4dac](https://mnr-jupyterhub.de-prod.dk/static/extensions/panel/panel.min.js?v=1f4dc096d58f7d21e3875671aee6f29b120ab84218fa47db2cb53bc9eb5b4dac
While it should be trying to find
https://SOME-DOMAIN/SOME-PREFIX/static/extensions/panel/panel.min.js?v=1f4dc096d58f7d21e3875671aee6f29b120ab84218fa47db2cb53bc9eb5b4dac](https://mnr-jupyterhub.de-prod.dk/static/extensions/panel/panel.min.js?v=1f4dc096d58f7d21e3875671aee6f29b120ab84218fa47db2cb53bc9eb5b4dac
Cause
I think the cause is the
/
prefixReproduce
I've tried to setup binder to reproduce in https://github.com/MarcSkovMadsen/panel-fastapi-experiments. You can open https://mybinder.org/v2/gh/MarcSkovMadsen/panel-fastapi-experiments.git/HEAD to reproduce.
Please note that depending on the binder server this might work or not work. I've experienced some binder servers catching the "proxy" endpoints and displaying their own web page instead.
bokeh-fastapi-issue.mp4
The text was updated successfully, but these errors were encountered: