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

Upgrading extension for JupyterLab 4 compatibility #3781

Closed
BarbarossaWang opened this issue May 26, 2023 · 4 comments · Fixed by #3752
Closed

Upgrading extension for JupyterLab 4 compatibility #3781

BarbarossaWang opened this issue May 26, 2023 · 4 comments · Fixed by #3752

Comments

@BarbarossaWang
Copy link

Problem

Last week, JupyterLab release v4.0.0 that need upgrade existing extensions to use the new extesion systen and packaging.

Using current ipywidgets extesions in JupyterLab 4 that would throw Error displaying widget.

Proposed Solution

Check JupyterLab Extension Migration Guide.

@BarbarossaWang BarbarossaWang changed the title Upgrading extension for JupyterLab 4 compatibility. Upgrading extension for JupyterLab 4 compatibility May 26, 2023
@jtpio jtpio linked a pull request May 26, 2023 that will close this issue
@ibdafna
Copy link
Member

ibdafna commented Jun 6, 2023

Hey @BarbarossaWang welcome to the ipywidgets community!

Would you be able to share more context on this problem, perhaps with steps to reproduce your issue? Are you trying to build a custom widget? If you are trying to use ipywidgets in Jupyterlab 4 and are seeing an error, a set of steps to reproduce would be great. Thanks!

Bug report template: https://github.com/jupyter-widgets/ipywidgets/blob/main/.github/ISSUE_TEMPLATE/bug_report.md

@Yishai-s
Copy link

Yishai-s commented Jun 7, 2023

Hey @ibdafna,
I'm probably misunderstanding something, but I encountered a problem that may be the one @BarbarossaWang had.
With jupyterlab==4.0.1, ipywidgets==8.0.3, I start a jupyter lab and create a Tab:
import ipywidgets as widgets
widgets.Tab(children=(widgets.IntSlider(), widgets.IntSlider()), titles=('Tab1', 'Tab2'))

The Tab is indeed created, but it doesn't look right -
image
instead of how it is supposed to look (produced with jupyter notebook):
image

Thanks

@martinRenou
Copy link
Member

@Yishai-s this has been fixed by #3787 and will be included in the next release

@Yishai-s
Copy link

Great,
Thanks!

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

Successfully merging a pull request may close this issue.

4 participants