##// END OF EJS Templates
Change IPython widget warning to get rid of filenames and line numbers...
Jason Grout -
Show More
@@ -24,6 +24,9 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 from warnings import warn_explicit
30 __warningregistry__ = {}
31 warn_explicit("IPython widgets are experimental and may change in the future.",
32 FutureWarning, '', 0, registry=__warningregistry__)
General Comments 0
You need to be logged in to leave comments. Login now