Show More
@@ -561,10 +561,6 b' Currently the magic system has the following functions:""",' | |||||
561 |
|
561 | |||
562 | @magic_arguments.magic_arguments() |
|
562 | @magic_arguments.magic_arguments() | |
563 | @magic_arguments.argument( |
|
563 | @magic_arguments.argument( | |
564 | '-e', '--export', action='store_true', default=False, |
|
|||
565 | help=argparse.SUPPRESS |
|
|||
566 | ) |
|
|||
567 | @magic_arguments.argument( |
|
|||
568 | 'filename', type=str, |
|
564 | 'filename', type=str, | |
569 | help='Notebook name or filename' |
|
565 | help='Notebook name or filename' | |
570 | ) |
|
566 | ) | |
@@ -574,9 +570,6 b' Currently the magic system has the following functions:""",' | |||||
574 |
|
570 | |||
575 | This function can export the current IPython history to a notebook file. |
|
571 | This function can export the current IPython history to a notebook file. | |
576 | For example, to export the history to "foo.ipynb" do "%notebook foo.ipynb". |
|
572 | For example, to export the history to "foo.ipynb" do "%notebook foo.ipynb". | |
577 |
|
||||
578 | The -e or --export flag is deprecated in IPython 5.2, and will be |
|
|||
579 | removed in the future. |
|
|||
580 | """ |
|
573 | """ | |
581 | args = magic_arguments.parse_argstring(self.notebook, s) |
|
574 | args = magic_arguments.parse_argstring(self.notebook, s) | |
582 |
|
575 |
@@ -750,7 +750,7 b' def test_notebook_export_json():' | |||||
750 | _ip.history_manager.store_inputs(i, cmd) |
|
750 | _ip.history_manager.store_inputs(i, cmd) | |
751 | with TemporaryDirectory() as td: |
|
751 | with TemporaryDirectory() as td: | |
752 | outfile = os.path.join(td, "nb.ipynb") |
|
752 | outfile = os.path.join(td, "nb.ipynb") | |
753 |
_ip.magic("notebook |
|
753 | _ip.magic("notebook %s" % outfile) | |
754 |
|
754 | |||
755 |
|
755 | |||
756 | class TestEnv(TestCase): |
|
756 | class TestEnv(TestCase): |
@@ -208,26 +208,6 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||||
208 | StoreMagics, |
|
208 | StoreMagics, | |
209 | ] |
|
209 | ] | |
210 |
|
210 | |||
211 | deprecated_subcommands = dict( |
|
|||
212 | qtconsole=('qtconsole.qtconsoleapp.JupyterQtConsoleApp', |
|
|||
213 | """DEPRECATED, Will be removed in IPython 6.0 : Launch the Jupyter Qt Console.""" |
|
|||
214 | ), |
|
|||
215 | notebook=('notebook.notebookapp.NotebookApp', |
|
|||
216 | """DEPRECATED, Will be removed in IPython 6.0 : Launch the Jupyter HTML Notebook Server.""" |
|
|||
217 | ), |
|
|||
218 | console=('jupyter_console.app.ZMQTerminalIPythonApp', |
|
|||
219 | """DEPRECATED, Will be removed in IPython 6.0 : Launch the Jupyter terminal-based Console.""" |
|
|||
220 | ), |
|
|||
221 | nbconvert=('nbconvert.nbconvertapp.NbConvertApp', |
|
|||
222 | "DEPRECATED, Will be removed in IPython 6.0 : Convert notebooks to/from other formats." |
|
|||
223 | ), |
|
|||
224 | trust=('nbformat.sign.TrustNotebookApp', |
|
|||
225 | "DEPRECATED, Will be removed in IPython 6.0 : Sign notebooks to trust their potentially unsafe contents at load." |
|
|||
226 | ), |
|
|||
227 | kernelspec=('jupyter_client.kernelspecapp.KernelSpecApp', |
|
|||
228 | "DEPRECATED, Will be removed in IPython 6.0 : Manage Jupyter kernel specifications." |
|
|||
229 | ), |
|
|||
230 | ) |
|
|||
231 | subcommands = dict( |
|
211 | subcommands = dict( | |
232 | profile = ("IPython.core.profileapp.ProfileApp", |
|
212 | profile = ("IPython.core.profileapp.ProfileApp", | |
233 | "Create and manage IPython profiles." |
|
213 | "Create and manage IPython profiles." | |
@@ -242,11 +222,7 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||||
242 | "Manage the IPython history database." |
|
222 | "Manage the IPython history database." | |
243 | ), |
|
223 | ), | |
244 | ) |
|
224 | ) | |
245 | deprecated_subcommands['install-nbextension'] = ( |
|
225 | ||
246 | "notebook.nbextensions.InstallNBExtensionApp", |
|
|||
247 | "DEPRECATED, Will be removed in IPython 6.0 : Install Jupyter notebook extension files" |
|
|||
248 | ) |
|
|||
249 | subcommands.update(deprecated_subcommands) |
|
|||
250 |
|
226 | |||
251 | # *do* autocreate requested profile, but don't create the config file. |
|
227 | # *do* autocreate requested profile, but don't create the config file. | |
252 | auto_create=Bool(True) |
|
228 | auto_create=Bool(True) |
General Comments 0
You need to be logged in to leave comments.
Login now