mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Make the widget experimental error a real python warning
This means it can easily be turned off too.
This commit is contained in:
parent
f2e1b6f65f
commit
c8d70e0603
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user