remove vestigial lines from documentation

Found here:
This commit is contained in:
Michael Chirico 2018-09-12 17:37:14 +08:00 committed by GitHub
parent 872a6c7b9b
commit ffb486453f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))