Show More
@@ -8,12 +8,14 b' import sys' | |||||
8 | from warnings import warn |
|
8 | from warnings import warn | |
9 |
|
9 | |||
10 | warn("The `IPython.html` package has been deprecated. " |
|
10 | warn("The `IPython.html` package has been deprecated. " | |
11 | "You should import from jupyter_notebook instead.") |
|
11 | "You should import from `jupyter_notebook` and `jupyter_widgets` instead.") | |
12 |
|
12 | |||
13 | from IPython.utils.shimmodule import ShimModule |
|
13 | from IPython.utils.shimmodule import ShimModule | |
14 |
|
14 | |||
15 | sys.modules['IPython.html'] = ShimModule( |
|
15 | sys.modules['IPython.html'] = ShimModule( | |
16 | src='IPython.html', mirror='jupyter_notebook') |
|
16 | src='IPython.html', mirror='jupyter_notebook') | |
|
17 | sys.modules['IPython.html.widgets'] = ShimModule( | |||
|
18 | src='IPython.html.widgets', mirror='jupyter_widgets') | |||
17 |
|
19 | |||
18 | if __name__ == '__main__': |
|
20 | if __name__ == '__main__': | |
19 | from jupyter_notebook import notebookapp as app |
|
21 | from jupyter_notebook import notebookapp as app |
General Comments 0
You need to be logged in to leave comments.
Login now