Browse Source

cd to output dir when executing notebook

pull/5/head
Fredrik Ekre 8 years ago
parent
commit
78729a8eea
  1. 2
      src/Examples.jl

2
src/Examples.jl

@ -391,7 +391,9 @@ function notebook(inputfile, outputdir; preprocess = identity, postprocess = ide @@ -391,7 +391,9 @@ function notebook(inputfile, outputdir; preprocess = identity, postprocess = ide
@info "executing notebook $(name * ".ipynb")"
try
# run(`jupyter nbconvert --ExecutePreprocessor.timeout=-1 --to notebook --execute $(abspath(outputfile)) --output $(filename(outputfile)).ipynb`)
cd(outputdir) do
nb = execute_notebook(nb)
end
catch err
@error "error when executing notebook $(name * ".ipynb")"
rethrow(err)

Loading…
Cancel
Save