mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
remove vestigial lines from documentation
Found here:
This commit is contained in:
parent
872a6c7b9b
commit
ffb486453f
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user