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

Move internal references to relative imports, add migration note #2

Conversation

jasongrout
Copy link

@maartenbreddels, here are two more suggestions for jupyter-widgets#3567

@github-actions
Copy link

github-actions bot commented Sep 6, 2022

Binder 👈 Launch a binder notebook on branch jasongrout/ipywidgets/fix_widgets_and_widget_types

from .widgets import Widget, DOMWidget
from .widgets.widget import _instances
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like importing variables because modifying them in the original will not modify the copy here (something I do in Solara).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a new version that imports the widget module instead. Better?

@jasongrout jasongrout force-pushed the fix_widgets_and_widget_types branch from d645904 to db41eab Compare September 6, 2022 22:42
@maartenbreddels maartenbreddels merged commit ae33123 into maartenbreddels:fix_widgets_and_widget_types Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants