"""Shim to maintain backwards compatibility with old IPython.html imports."""# Copyright (c) IPython Development Team.# Distributed under the terms of the Modified BSD License.importsysfromwarningsimportwarnfromIPython.utils.shimmoduleimportShimModule,ShimWarningwarn("The `IPython.html` package has been deprecated since IPython 4.0. ""You should import from `notebook` instead. ""`IPython.html.widgets` has moved to `ipywidgets`.",ShimWarning)_widgets=sys.modules['IPython.html.widgets']=ShimModule(src='IPython.html.widgets',mirror='ipywidgets')_html=ShimModule(src='IPython.html',mirror='notebook')# hook up widgets_html.widgets=_widgetssys.modules['IPython.html']=_htmlif__name__=='__main__':fromnotebookimportnotebookappasappapp.launch_new_instance()