Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c03b2b6

Browse files
committed
move widget shim to html.py
adding it in html.widgets removed the shim for top-level html
1 parent 777175b commit c03b2b6

3 files changed

Lines changed: 5 additions & 17 deletions

File tree

IPython/html.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
from warnings import warn
99

1010
warn("The `IPython.html` package has been deprecated. "
11-
"You should import from `jupyter_notebook` instead.")
11+
"You should import from `jupyter_notebook` instead. "
12+
"`IPython.html.widgets` has moved to `ipython_widgets`.")
1213

1314
from IPython.utils.shimmodule import ShimModule
1415

1516
sys.modules['IPython.html'] = ShimModule(
1617
src='IPython.html', mirror='jupyter_notebook')
1718

19+
sys.modules['IPython.html.widgets'] = ShimModule(
20+
src='IPython.html.widgets', mirror='ipython_widgets')
21+
1822
if __name__ == '__main__':
1923
from jupyter_notebook import notebookapp as app
2024
app.launch_new_instance()

IPython/html/__init__.py

Whitespace-only changes.

IPython/html/widgets.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)