-
Notifications
You must be signed in to change notification settings - Fork 3
Rewrite as JupyterLab frontend plugin #49
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
JupyterLite should now have these changes via jupyterlite/jupyterlite#1597. And available in the latest pre-release: https://github.com/jupyterlite/jupyterlite/releases/tag/v0.6.0a5 |
@jtpio The changes in Lab are really useful. Instead of writing my own This creates an instance of |
Were you able to try passing a custom This sounds similar to the |
Arf, I think we need to pass the client to the We should likely do something similar to the |
@ianthomas23 would you like to open the PR, to replace the use of the default Rest API here? https://github.com/jupyterlab/jupyterlab/blob/85c82eba1caa7e28a0d818c0840e13756c1b1256/packages/services/src/terminal/default.ts#L232 |
OK I opened jupyterlab/jupyterlab#17437 to fix it, so it can be merged for 4.4.0. |
Thanks, I have confirmed that that PR fixes the problem for me here. I won't push any more changes here until there are JupyterLab and Lite prereleases containing the fix. |
FYI JupyterLab I'll look into updating notebook and lite, so we can update the PR here too. |
77666b2
to
63e9887
Compare
This is now working using jupyterlab 4.4.0 and jupyterlite-core 0.6.0a6. Terminal shutdown works both from the UI and using the
but neither of these work in the |
498a263
to
2593bc6
Compare
@jtpio This is now using jupyterlab 4.4.0, jupyterlite-core 0.6.0a9 and cockle 0.0.19. To get the Line 20 in 7326f7d
following how it is done in the pyodide-kernel. But this isn't working for me, in fact the app isn't even defined. This is what I see locally and in the vercel deployment here:
![]() I note that the pyodide kernel works fine in the vercel deployment, so maybe this is something to do with the order of initialisation of the plugins? |
The Regarding the missing |
0c8520e
to
2c18490
Compare
2c18490
to
65a249d
Compare
It turns out that specifying Instead the solution is to have two separate plugins, the first is a |
3bf2fe4
to
04957ff
Compare
Merging to make a pre-release. |
Work in progress to rewrite as a conventional JupyterLab frontend plugin following significant changes in JupyterLite to unify with JupyterLab (jupyterlite/jupyterlite#1590). Builds against prereleases of both JupyterLite and JupyterLab.
The Terminal itself works, but not the full shutdown and reopen functionality.
Quite a lot of this is necessarily reproduced from the equivalent JupyterLab code. It will be possible to reduce some of the duplication when jupyterlab/jupyterlab#17395 is merged and released.