Skip to content
Snippets Groups Projects
Commit 4b034603 authored by Ian Bell's avatar Ian Bell
Browse files

Check that nbconvert can be called

parent 7deb8efd
No related branches found
No related tags found
No related merge requests found
......@@ -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 ---------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment