mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Merge pull request #7200 from jasongrout/widget-warning
Make the widget experimental error a real python warning
This commit is contained in:
commit
8ea37a4b2b
@ -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