Show More
@@ -8,7 +8,7 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 ` |
|
11 | "You should import from `notebook` instead. " | |
12 | "`IPython.html.widgets` has moved to `ipython_widgets`.") |
|
12 | "`IPython.html.widgets` has moved to `ipython_widgets`.") | |
13 |
|
13 | |||
14 | from IPython.utils.shimmodule import ShimModule |
|
14 | from IPython.utils.shimmodule import ShimModule | |
@@ -17,12 +17,12 b" _widgets = sys.modules['IPython.html.widgets'] = ShimModule(" | |||||
17 | src='IPython.html.widgets', mirror='ipython_widgets') |
|
17 | src='IPython.html.widgets', mirror='ipython_widgets') | |
18 |
|
18 | |||
19 | _html = ShimModule( |
|
19 | _html = ShimModule( | |
20 |
src='IPython.html', mirror=' |
|
20 | src='IPython.html', mirror='notebook') | |
21 |
|
21 | |||
22 | # hook up widgets |
|
22 | # hook up widgets | |
23 | _html.widgets = _widgets |
|
23 | _html.widgets = _widgets | |
24 | sys.modules['IPython.html'] = _html |
|
24 | sys.modules['IPython.html'] = _html | |
25 |
|
25 | |||
26 | if __name__ == '__main__': |
|
26 | if __name__ == '__main__': | |
27 |
from |
|
27 | from notebook import notebookapp as app | |
28 | app.launch_new_instance() |
|
28 | app.launch_new_instance() |
@@ -210,8 +210,8 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||||
210 | qtconsole=('qtconsole.console.qtconsoleapp.JupyterQtConsoleApp', |
|
210 | qtconsole=('qtconsole.console.qtconsoleapp.JupyterQtConsoleApp', | |
211 | """DEPRECATD: Launch the Jupyter Qt Console.""" |
|
211 | """DEPRECATD: Launch the Jupyter Qt Console.""" | |
212 | ), |
|
212 | ), | |
213 |
notebook=(' |
|
213 | notebook=('notebook.notebookapp.NotebookApp', | |
214 |
"""DEPRECATED: Launch the |
|
214 | """DEPRECATED: Launch the Jupyter HTML Notebook Server.""" | |
215 | ), |
|
215 | ), | |
216 | profile = ("IPython.core.profileapp.ProfileApp", |
|
216 | profile = ("IPython.core.profileapp.ProfileApp", | |
217 | "Create and manage IPython profiles." |
|
217 | "Create and manage IPython profiles." | |
@@ -239,7 +239,7 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||||
239 | ), |
|
239 | ), | |
240 | ) |
|
240 | ) | |
241 | subcommands['install-nbextension'] = ( |
|
241 | subcommands['install-nbextension'] = ( | |
242 |
" |
|
242 | "notebook.nbextensions.NBExtensionApp", | |
243 | "DEPRECATED: Install Jupyter notebook extension files" |
|
243 | "DEPRECATED: Install Jupyter notebook extension files" | |
244 | ) |
|
244 | ) | |
245 |
|
245 |
@@ -214,9 +214,9 b" def temp_pyfile(src, ext='.py'):" | |||||
214 | return fname, f |
|
214 | return fname, f | |
215 |
|
215 | |||
216 | def atomic_writing(*args, **kwargs): |
|
216 | def atomic_writing(*args, **kwargs): | |
217 |
"""DEPRECATED: moved to |
|
217 | """DEPRECATED: moved to notebook.services.contents.fileio""" | |
218 |
warn("IPython.utils.io.atomic_writing has moved to |
|
218 | warn("IPython.utils.io.atomic_writing has moved to notebook.services.contents.fileio") | |
219 |
from |
|
219 | from notebook.services.contents.fileio import atomic_writing | |
220 | return atomic_writing(*args, **kwargs) |
|
220 | return atomic_writing(*args, **kwargs) | |
221 |
|
221 | |||
222 | def raw_print(*args, **kw): |
|
222 | def raw_print(*args, **kw): |
@@ -208,7 +208,7 b' extras_require = dict(' | |||||
208 | terminal = [], |
|
208 | terminal = [], | |
209 | kernel = ['ipykernel'], |
|
209 | kernel = ['ipykernel'], | |
210 | nbformat = ['nbformat'], |
|
210 | nbformat = ['nbformat'], | |
211 |
notebook = [' |
|
211 | notebook = ['notebook'], | |
212 | nbconvert = ['nbconvert'], |
|
212 | nbconvert = ['nbconvert'], | |
213 | ) |
|
213 | ) | |
214 |
|
214 |
General Comments 0
You need to be logged in to leave comments.
Login now