diff --git a/doc/source/conf.py b/doc/source/conf.py index debde9be0add829404924fae9526a1aedb3dee0c..d326623c5d10658ab796145b67043f9eaae60346 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -28,11 +28,11 @@ import teqp release = teqp.__version__ # -- Exeucute all notebooks -------------------------------------------------- - +subprocess.check_output(f'jupyter nbconvert --version', shell=True, cwd=path) for path, dirs, files in os.walk('.'): for file in files: if file.endswith('.ipynb'): - subprocess.check_output(f'jupyter nbconvert --ExecutePreprocessor.allow_errors=True --to notebook --output {file} --execute {file}', cwd=path) + subprocess.check_output(f'jupyter nbconvert --ExecutePreprocessor.allow_errors=True --to notebook --output {file} --execute {file}', shell=True, cwd=path) # -- General configuration ---------------------------------------------------