Skip to content

Commit 075acdf

Browse files
authoredSep 13, 2018
Merge pull request #3908 from MichaelChirico/patch-1
remove vestigial lines from documentation
2 parents 872a6c7 + ffb4864 commit 075acdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎docs/source/extending/savehooks.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ A post-save hook to make a script equivalent whenever the notebook is saved
5454
def script_post_save(model, os_path, contents_manager, **kwargs):
5555
"""convert notebooks to Python script after save with nbconvert
5656
57-
replaces `ipython notebook --script`
57+
replaces `jupyter notebook --script`
5858
"""
5959
from nbconvert.exporters.script import ScriptExporter
6060
@@ -69,7 +69,6 @@ A post-save hook to make a script equivalent whenever the notebook is saved
6969
log = contents_manager.log
7070
7171
base, ext = os.path.splitext(os_path)
72-
py_fname = base + '.py'
7372
script, resources = _script_exporter.from_filename(os_path)
7473
script_fname = base + resources.get('output_extension', '.txt')
7574
log.info("Saving script /%s", to_api_path(script_fname, contents_manager.root_dir))

0 commit comments

Comments
 (0)
Please sign in to comment.