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
Update to JupyterLab 2.0 #70
Conversation
Jupyterlab provides a class `ClientSession` | ||
([see the documentation](https://jupyterlab.github.io/jupyterlab/apputils/classes/clientsession.html)) | ||
Jupyterlab provides a class `SessionContext` | ||
([see the documentation](https://jupyterlab.github.io/jupyterlab/apputils/classes/sessioncontext.html)) |
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.
This link doesn't work (yet). We should check whether it gets updated once 2.0 final is published.
Looks like b81943d fixes the icon issue. A new |
Tested this branch and works well with latest jupyterlab master. |
Thanks @echarles for trying it out. We can check with the latest rc (that includes the icon fix from jupyterlab/jupyterlab#7864), which should make b81943d not necessary anymore. |
I have tried with jlab 2.rc2 with and without b81943d The icons are not displayed. I will experiment a bit and see what is going on here... |
And that's from a clean install ( |
This is the clean I have done before running the tests, but I should do it again as yesterday was a bit messy.
|
Updated to the latest |
@echarles just tried locally in a fresh conda environment, and icons are also missing. |
Maybe we should @telamonian expert eyes here? |
Now using the same pattern as in core JupyterLab: See f0de1f9. Also quickly tried the "legacy icon as css class" as mentioned in jupyterlab/jupyterlab#7887 (comment), but without success. |
The lint issue mentioned above appears to be related to the latest TypeScript 3.8 version. Changing it to |
@jtpio Turns out that although |
Thanks @telamonian, will check that out! |
@echarles I think the examples should now work as before, marking it as ready for review. cc @fcollonval if you also want to have a look. |
We could consolidate the explanations for the |
Updated to the 2.0 packages, since 2.0 final was released yesterday. This should be good to go. |
I will branch from this and make a pass on the extension to deal with:
|
@echarles I think the other examples just don't have any icon set: But it would be nice if they had one (even if it's a placeholder). |
Merged. Thx a lot @jtpio for this great step. I will iterate on master and submit something tomorrow. |
Thanks! |
Fixes #68.
Migration guide: https://jupyterlab.readthedocs.io/en/latest/developer/extension_migration.html#jupyterlab-1-x-to-2-x-extension-migration-guide