From 4b0346035dcf7010a97306cdf94b0229d194274e Mon Sep 17 00:00:00 2001
From: Ian Bell <ian.bell@nist.gov>
Date: Wed, 6 Jul 2022 19:12:53 -0400
Subject: [PATCH] Check that nbconvert can be called

---
 doc/source/conf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/source/conf.py b/doc/source/conf.py
index debde9b..d326623 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 ---------------------------------------------------
 
-- 
GitLab