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

Deprecated Warning Widget.widgets is deprecated #15

Closed
lp9052 opened this issue May 26, 2023 · 0 comments
Closed

Deprecated Warning Widget.widgets is deprecated #15

lp9052 opened this issue May 26, 2023 · 0 comments

Comments

@lp9052
Copy link

lp9052 commented May 26, 2023

I got following warning when running pytest:
reacton\core.py:362: DeprecationWarning: Widget.widgets is deprecated.
before = set(widgets.Widget.widgets)
reacton\core.py:1936: DeprecationWarning: Widget.widgets is deprecated.
orphan_widgets = set([widgets.Widget.widgets[k] for k in orphan_ids])

All occurrences of referencing Widget.widgets throw DeprecationWarning.

In ipywidgets(8.0.6), it states:
# Because this is a static attribute, it will be accessed when initializing this class. In that case, since a user
# did not explicitly try to use this attribute, we do not want to throw a deprecation warning.
# So we check if the thing calling this static property is one of the known initialization functions in traitlets.

Anyway to avoid?

P.S.
What's the difference between render() and render_fixed()? I do see render add another container around elements. Any explanations about when to choose which?

Thanks a lot.

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