From ffb486453f13531d876800e2ce698573919dcc18 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Wed, 12 Sep 2018 17:37:14 +0800 Subject: [PATCH] remove vestigial lines from documentation Found here: --- docs/source/extending/savehooks.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/source/extending/savehooks.rst b/docs/source/extending/savehooks.rst index 536d5e1947..623c2acfdd 100644 --- a/docs/source/extending/savehooks.rst +++ b/docs/source/extending/savehooks.rst @@ -54,7 +54,7 @@ A post-save hook to make a script equivalent whenever the notebook is saved def script_post_save(model, os_path, contents_manager, **kwargs): """convert notebooks to Python script after save with nbconvert - replaces `ipython notebook --script` + replaces `jupyter notebook --script` """ from nbconvert.exporters.script import ScriptExporter @@ -69,7 +69,6 @@ A post-save hook to make a script equivalent whenever the notebook is saved log = contents_manager.log base, ext = os.path.splitext(os_path) - py_fname = base + '.py' script, resources = _script_exporter.from_filename(os_path) script_fname = base + resources.get('output_extension', '.txt') log.info("Saving script /%s", to_api_path(script_fname, contents_manager.root_dir))