Show More
@@ -24,9 +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 |
# |
|
27 | # We use warn_explicit so we have very brief messages without file or line numbers. | |
28 |
# |
|
28 | # The concern is that file or line numbers will confuse the interactive user. | |
|
29 | # To ignore this warning, do: | |||
|
30 | # | |||
|
31 | # from warnings import filterwarnings | |||
|
32 | # filterwarnings('ignore', module='IPython.html.widgets') | |||
|
33 | ||||
29 | from warnings import warn_explicit |
|
34 | from warnings import warn_explicit | |
30 | __warningregistry__ = {} |
|
35 | __warningregistry__ = {} | |
31 | warn_explicit("IPython widgets are experimental and may change in the future.", |
|
36 | warn_explicit("IPython widgets are experimental and may change in the future.", | |
32 | FutureWarning, '', 0, registry=__warningregistry__) |
|
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