Make the widget experimental error a real python warning

This means it can easily be turned off too.
This commit is contained in:
Jason Grout 2014-12-12 19:10:37 +00:00
parent f2e1b6f65f
commit c8d70e0603

View File

@ -25,6 +25,5 @@ from .widget_selectioncontainer import TabWidget, AccordionWidget
from .widget_string import HTMLWidget, LatexWidget, TextWidget, TextareaWidget
# Warn on import
from IPython.utils.warn import warn
warn("""The widget API is still considered experimental and
may change by the next major release of IPython.""")
from warnings import warn
warn("""The widget API is still considered experimental and may change in the future.""", FutureWarning, stacklevel=2)