-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for a client request prefix parameter to nbdiff-web #458
Comments
A couple questions for context:
|
Nope, not using jypyter-server-proxy.
And no, I wasn't aware of those extensions. I'll check them out to see if
they help, thanks
…On Fri, Mar 1, 2019, 22:41 Min RK ***@***.***> wrote:
A couple questions for context:
1. are you using jupyter-server-proxy
<https://github.com/jupyterhub/jupyter-server-proxy> (formerly known
as nbserverproxy) to do this forwarding? If so, it mangles forwarded paths,
but doesn't have to
<jupyterhub/jupyter-server-proxy#85> in the
current beta release. Telling nbdime the base url and using the
path-preserving proxy url should work. That would mean using e.g.
http://PUBLIC_HOST/proxy/absolute/44021/difftool
2. are you aware of the jupyterlab nbdime and nbserver extensions? I'd
recommend using those if you can, since they shouldn't have to deal with
this proxy stuff.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#458 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACs1GMuXmSG9cLPiOOE0iQGkTQ6M2y67ks5vSRHqgaJpZM4bYbPs>
.
|
Closing as answered. |
Hi, I'm running into a similar issue, but within Dataiku. I'm running a Jupyter Lab server inside a Code Studio on this platform (which basically runs a JupyterLab server in a Kubernetes pod). Inside this environment, a diff-web instance running on How should I use the Thanks! |
I'm trying to run nbdiff on AWS Sagemaker (using Jupyter Lab) but running into this blocking problem.
Inside the Sagemaker environment, running an app on a port is automatically made available through a prefix appended to the the request string. So an nbdiff instance running on
http://127.0.0.1:44021/difftool
would be made externally available athttp://PUBLIC_HOST/proxy/44021/difftool
. This breaks the app however as it assumes the JavaScript assetnbdime.js
is located at/static/nbdime.js
when it's actually found at/proxy/44021/static/nbdime.js
. The same problem occurs within nbdime.js, where all the api requests assume the api endpoints are found at/api/
.nbdiff-web
has thebase-url
parameter, however this changes the prefix for both URL routes and also client requests, so this doesn't work. It seems like a separate request prefix param is required for when a web host has implicitly set a requests prefix.The text was updated successfully, but these errors were encountered: