File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ A post-save hook to make a script equivalent whenever the notebook is saved
54
54
def script_post_save (model , os_path , contents_manager , ** kwargs ):
55
55
""" convert notebooks to Python script after save with nbconvert
56
56
57
- replaces `ipython notebook --script`
57
+ replaces `jupyter notebook --script`
58
58
"""
59
59
from nbconvert.exporters.script import ScriptExporter
60
60
@@ -69,7 +69,6 @@ A post-save hook to make a script equivalent whenever the notebook is saved
69
69
log = contents_manager.log
70
70
71
71
base, ext = os.path.splitext(os_path)
72
- py_fname = base + ' .py'
73
72
script, resources = _script_exporter.from_filename(os_path)
74
73
script_fname = base + resources.get(' output_extension' , ' .txt' )
75
74
log.info(" Saving script /%s " , to_api_path(script_fname, contents_manager.root_dir))
You can’t perform that action at this time.
0 commit comments