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

Skip to content

Commit 8e65f9c

Browse files
committed
jupyter_notebook renamed to just notebook
1 parent 5907ad9 commit 8e65f9c

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

IPython/html.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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 `notebook` instead. "
1212
"`IPython.html.widgets` has moved to `ipython_widgets`.")
1313

1414
from IPython.utils.shimmodule import ShimModule
@@ -17,12 +17,12 @@
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
2424
sys.modules['IPython.html'] = _html
2525

2626
if __name__ == '__main__':
27-
from jupyter_notebook import notebookapp as app
27+
from notebook import notebookapp as app
2828
app.launch_new_instance()

IPython/terminal/ipapp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

IPython/utils/io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ def temp_pyfile(src, ext='.py'):
214214
return fname, f
215215

216216
def 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

222222
def raw_print(*args, **kw):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)