-
Notifications
You must be signed in to change notification settings - Fork 86
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
Support use with jupyter_server by decoupling notebook dependencies #193
Conversation
You can just start |
Thanks @yuvipanda! I tried it and observed the following behavior:
From my understanding, all these files that are reported as "missing" when using jupyter_server, exist in the classic Notebook Server package. Which makes sense, since they are "fronted-related". |
Could it be that you need to change some imports from |
Yep, that's the way forward. Re-using xterm.js from where we do is definitely a notebook-specific implementation detail - see 3714d00 and #4 for other times it needed updating. Unfortunately, we are also using a template from notebook server to render our page, so this might not be the simplest operation. |
The way to do this is to not inherit from page.html. https://github.com/jupyter/notebook/blob/master/notebook/templates/page.html is the source, so we can copy that in and remove our dependency on the notebook package. In addition, we'll need to make our JS work without the dependencies we inherit from the |
Thanks for the pointers @yuvipanda. I wasn't sure where to start. I'll update this PR once I have something/questions. |
31fe3fb
to
2657245
Compare
I've realized that I pushed some commits without saying anything, sorry about that :( I managed to get this working locally, yay 🎉 I still need to update the CI to actually use this version and then update the docs/README. But I would love some feedback about the implementation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestion about removing extra js stuff in the template, but otherwise great! I haven't tested it at all though.
How do you think we can test this against jupyter-server? We need to make sure this still works on both jupyter-server and classic notebook...
nbgitpuller/templates/page.html
Outdated
{% endif %} | ||
baseUrl: '{{static_url("", include_version=False)}}', | ||
paths: { | ||
'auth/js/main': 'auth/js/main.min', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove the ones we don't need? I think we can get rid of a lot of these!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cheated and copied the page.html
file from jupyter_server which should have only the things we need. I'm not sure if I'm right though 😬
@yuvipanda, I parametrized the existing tests in I have to note one thing though, because I had some troubles making the tests pass on the CI and locally there were no issues. Without installing a front-end jupyter_server extension ( |
Hi @GeorgianaElena and @yuvipanda, We migrated our school infra to jupyterlab 3.1.4 during the summer and now we just realized that nbgitpuller no longer works (arrg, how could we miss that!). Looks like you've done the hard work to get nbgitpuller to work with jupyter_server... how can we help to get this pull request applied and released ? |
@nibheis if you can try this out patch in your setup and tell us any problems you encounter, that will be a big help :) |
I think the 404 makes sense since it's done after the pulling is successful. |
Hi @GeorgianaElena and @yuvipanda, So, I:
and it worked as expected. I could not see any warning in the jupyterlab logs. All looks good to me ; I hope it helps. I will deploy this branch on all our servers until a release is made. Many thanks! |
WIEEEEEEEEEEEE!!! Thank you @GeorgianaElena!!! 🎉 ❤️ 🌻! Thank you @nibheis, @yuvipanda, and @manics as well! |
@yuvipanda Could be related to the xtermjs 4 upgrade(?), since the way addons worked was changed. See for example https://github.com/cs01/pyxtermjs/pull/18/files |
Things mostly worked, but a couple small bugs exist: jupyterhub/nbgitpuller#193 (comment) This reverts commit 66f16fe.
Brings in jupyterhub/nbgitpuller#193, to test if it works ok
Things mostly worked, but a couple small bugs exist: jupyterhub/nbgitpuller#193 (comment) This reverts commit c4e8aeb.
Brings in jupyterhub/nbgitpuller#193, to test if it works ok
Things mostly worked, but a couple small bugs exist: jupyterhub/nbgitpuller#193 (comment) This reverts commit 8fafc4c.
Brings in jupyterhub/nbgitpuller#193, to test if it works ok
Things mostly worked, but a couple small bugs exist: jupyterhub/nbgitpuller#193 (comment) This reverts commit ba5ad18.
Brings in jupyterhub/nbgitpuller#193, to test if it works ok
Things mostly worked, but a couple small bugs exist: jupyterhub/nbgitpuller#193 (comment) This reverts commit cce2909.
Brings in jupyterhub/nbgitpuller#193, to test if it works ok
Things mostly worked, but a couple small bugs exist: jupyterhub/nbgitpuller#193 (comment) This reverts commit 598306b.
Brings in jupyterhub/nbgitpuller#193, to test if it works ok
Things mostly worked, but a couple small bugs exist: jupyterhub/nbgitpuller#193 (comment) This reverts commit fd355ff.
Fixes #177, and (edit by Erik) fixes #176, and fixes 2i2c-org/upstream#28
jupyter_server
docs on registering an extension to register nbgitpuller as ajupyter_server
extension alongside the jupyter notebook extension.Not sure how to test this though 👀 (Situation fixed, thanks to Yuvi :D)