##// END OF EJS Templates
shim widgets before shimming html...
Min RK -
Show More
@@ -1,24 +1,24 b''
1 1 """
2 2 Shim to maintain backwards compatibility with old IPython.html imports.
3 3 """
4 4 # Copyright (c) IPython Development Team.
5 5 # Distributed under the terms of the Modified BSD License.
6 6
7 7 import sys
8 8 from warnings import warn
9 9
10 10 warn("The `IPython.html` package has been deprecated. "
11 11 "You should import from `jupyter_notebook` instead. "
12 12 "`IPython.html.widgets` has moved to `ipython_widgets`.")
13 13
14 14 from IPython.utils.shimmodule import ShimModule
15 15
16 sys.modules['IPython.html'] = ShimModule(
17 src='IPython.html', mirror='jupyter_notebook')
18
19 16 sys.modules['IPython.html.widgets'] = ShimModule(
20 17 src='IPython.html.widgets', mirror='ipython_widgets')
21 18
19 sys.modules['IPython.html'] = ShimModule(
20 src='IPython.html', mirror='jupyter_notebook')
21
22 22 if __name__ == '__main__':
23 23 from jupyter_notebook import notebookapp as app
24 24 app.launch_new_instance()
General Comments 0
You need to be logged in to leave comments. Login now