File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88from warnings import warn
99
1010warn ("The `IPython.html` package has been deprecated. "
11- "You should import from `jupyter_notebook ` instead. "
11+ "You should import from `notebook ` instead. "
1212 "`IPython.html.widgets` has moved to `ipython_widgets`." )
1313
1414from IPython .utils .shimmodule import ShimModule
1717 src = 'IPython.html.widgets' , mirror = 'ipython_widgets' )
1818
1919_html = ShimModule (
20- src = 'IPython.html' , mirror = 'jupyter_notebook ' )
20+ src = 'IPython.html' , mirror = 'notebook ' )
2121
2222# hook up widgets
2323_html .widgets = _widgets
2424sys .modules ['IPython.html' ] = _html
2525
2626if __name__ == '__main__' :
27- from jupyter_notebook import notebookapp as app
27+ from notebook import notebookapp as app
2828 app .launch_new_instance ()
Original file line number Diff line number Diff line change @@ -210,8 +210,8 @@ def _classes_default(self):
210210 qtconsole = ('qtconsole.console.qtconsoleapp.JupyterQtConsoleApp' ,
211211 """DEPRECATD: Launch the Jupyter Qt Console."""
212212 ),
213- notebook = ('jupyter_notebook .notebookapp.NotebookApp' ,
214- """DEPRECATED: Launch the IPython HTML Notebook Server."""
213+ notebook = ('notebook .notebookapp.NotebookApp' ,
214+ """DEPRECATED: Launch the Jupyter HTML Notebook Server."""
215215 ),
216216 profile = ("IPython.core.profileapp.ProfileApp" ,
217217 "Create and manage IPython profiles."
@@ -239,7 +239,7 @@ def _classes_default(self):
239239 ),
240240 )
241241 subcommands ['install-nbextension' ] = (
242- "jupyter_notebook .nbextensions.NBExtensionApp" ,
242+ "notebook .nbextensions.NBExtensionApp" ,
243243 "DEPRECATED: Install Jupyter notebook extension files"
244244 )
245245
Original file line number Diff line number Diff line change @@ -214,9 +214,9 @@ def temp_pyfile(src, ext='.py'):
214214 return fname , f
215215
216216def atomic_writing (* args , ** kwargs ):
217- """DEPRECATED: moved to jupyter_notebook .services.contents.fileio"""
218- warn ("IPython.utils.io.atomic_writing has moved to jupyter_notebook .services.contents.fileio" )
219- from jupyter_notebook .services .contents .fileio import atomic_writing
217+ """DEPRECATED: moved to notebook .services.contents.fileio"""
218+ warn ("IPython.utils.io.atomic_writing has moved to notebook .services.contents.fileio" )
219+ from notebook .services .contents .fileio import atomic_writing
220220 return atomic_writing (* args , ** kwargs )
221221
222222def raw_print (* args , ** kw ):
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ def run(self):
208208 terminal = [],
209209 kernel = ['ipykernel' ],
210210 nbformat = ['nbformat' ],
211- notebook = ['jupyter_notebook ' ],
211+ notebook = ['notebook ' ],
212212 nbconvert = ['nbconvert' ],
213213)
214214
You can’t perform that action at this time.
0 commit comments