Skip to content

Commit

Permalink
Add debug info to jupyter nbconvert
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed May 6, 2020
1 parent 0a09cb6 commit 6004b9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tutobooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def py_to_nb(py_path, nb_path, fill_outputs=True):
current_files = os.listdir(parent_dir)
try:
os.system(
"jupyter nbconvert --to notebook --execute "
"jupyter nbconvert --to notebook --execute --debug "
+ str(nb_path)
+ " --inplace"
+ " --ExecutePreprocessor.timeout="
Expand Down Expand Up @@ -226,7 +226,7 @@ def nb_to_md(nb_path, md_path, img_dir, working_dir=None):
os.makedirs(img_dir)

os.system(
"jupyter nbconvert --to markdown --execute "
"jupyter nbconvert --to markdown --execute --debug "
+ nb_fname
+ " --output "
+ target_md
Expand Down

0 comments on commit 6004b9d

Please sign in to comment.