diff --git a/IPython/html.py b/IPython/html.py index 9c4b8cb..67565c7 100644 --- a/IPython/html.py +++ b/IPython/html.py @@ -8,13 +8,17 @@ import sys from warnings import warn warn("The `IPython.html` package has been deprecated. " - "You should import from `jupyter_notebook` instead.") + "You should import from `jupyter_notebook` instead. " + "`IPython.html.widgets` has moved to `ipython_widgets`.") from IPython.utils.shimmodule import ShimModule sys.modules['IPython.html'] = ShimModule( src='IPython.html', mirror='jupyter_notebook') +sys.modules['IPython.html.widgets'] = ShimModule( + src='IPython.html.widgets', mirror='ipython_widgets') + if __name__ == '__main__': from jupyter_notebook import notebookapp as app app.launch_new_instance() diff --git a/IPython/html/__init__.py b/IPython/html/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/IPython/html/__init__.py +++ /dev/null diff --git a/IPython/html/widgets.py b/IPython/html/widgets.py deleted file mode 100644 index 2896186..0000000 --- a/IPython/html/widgets.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -Shim to maintain backwards compatibility with old IPython.html.widgets imports. -""" -# Copyright (c) IPython Development Team. -# Distributed under the terms of the Modified BSD License. - -import sys -from warnings import warn - -warn("The `IPython.html.widgets` package has been deprecated. " - "You should import from `ipython_widgets` instead.") - -from IPython.utils.shimmodule import ShimModule - -sys.modules['IPython.html.widgets'] = ShimModule( - src='IPython.html.widgets', mirror='ipython_widgets')