Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment of Templated Apps to Binder using jupypter-panel-proxy not working. #2066

Closed
MarcSkovMadsen opened this issue Mar 9, 2021 · 3 comments · Fixed by #2067
Closed
Milestone

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Mar 9, 2021

Panel 0.11

My Pain

I would like to demonstrate to colleagues and the Panel community how easy it is to share Panel apps on binder. It's really just adding jupyter-panel-proxy as described in the Panel docs and your notebooks in the root directory.

But no. The world is not so easy and the FastGridTemplate does not work

Reproducing Steps

Open https://mybinder.org/v2/gh/MarcSkovMadsen/load-forecasts/HEAD?urlpath=/panel/app

Screenshot of bug

image

Repository

https://github.com/marcskovmadsen/load-forecasts

Additional Context

I would also in the near future have access to a JupyterHub and would like to run my panel apps there. And it would be the same problem on JupyterHub.

So there is a large community of users on Universities, Govt. institutions and in Enterprises that do not have easy access to share their Panel apps via JupyterHub.

FYI. @WesleyTheGeolien

@MarcSkovMadsen MarcSkovMadsen added the TRIAGE Default label for untriaged issues label Mar 9, 2021
@MarcSkovMadsen
Copy link
Collaborator Author

Additional Context

When running locally the app looks like

image

@MarcSkovMadsen MarcSkovMadsen added type: bug and removed TRIAGE Default label for untriaged issues labels Mar 9, 2021
@MarcSkovMadsen MarcSkovMadsen added this to the v0.11.x milestone Mar 9, 2021
@MarcSkovMadsen
Copy link
Collaborator Author

Additional Context - reverse proxy

I believe the problem is more general tjen jupyter deployment. I believe panel have problems whenever it’s deployed besind a reverse proxy to a non-root path.

For example at work I deploy to kubernetes and i have to serve my panel apps at /. If i serve them at /panel-apps my bundled static files cannot be found. Because panel looks for them at /static not / panel-apps/static

Thus a whole lot of kubernetes users/ reverse proxy users will not be able to deploy their panel apps.

@philippjfr philippjfr modified the milestones: v0.11.x, v0.11.1 Mar 10, 2021
@philippjfr
Copy link
Member

Yes, I think the paths are getting mangled here. We should fix this and then release 0.11.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants