Show More
@@ -24,6 +24,15 b' from .widget_selection import RadioButtonsWidget, ToggleButtonsWidget, DropdownW' | |||||
24 | from .widget_selectioncontainer import TabWidget, AccordionWidget |
|
24 | from .widget_selectioncontainer import TabWidget, AccordionWidget | |
25 | from .widget_string import HTMLWidget, LatexWidget, TextWidget, TextareaWidget |
|
25 | from .widget_string import HTMLWidget, LatexWidget, TextWidget, TextareaWidget | |
26 |
|
26 | |||
27 | # Warn on import |
|
27 | # We use warn_explicit so we have very brief messages without file or line numbers. | |
28 | from warnings import warn |
|
28 | # The concern is that file or line numbers will confuse the interactive user. | |
29 | warn("IPython widgets are experimental and may change in the future.", FutureWarning, stacklevel=2) |
|
29 | # To ignore this warning, do: | |
|
30 | # | |||
|
31 | # from warnings import filterwarnings | |||
|
32 | # filterwarnings('ignore', module='IPython.html.widgets') | |||
|
33 | ||||
|
34 | from warnings import warn_explicit | |||
|
35 | __warningregistry__ = {} | |||
|
36 | warn_explicit("IPython widgets are experimental and may change in the future.", | |||
|
37 | FutureWarning, '', 0, module = 'IPython.html.widgets', | |||
|
38 | registry = __warningregistry__, module_globals = globals) |
General Comments 0
You need to be logged in to leave comments.
Login now