diff --git a/example/test_examples.py b/example/test_examples.py index 0bca612..6890319 100644 --- a/example/test_examples.py +++ b/example/test_examples.py @@ -62,7 +62,7 @@ def _notebook_run(self, path): """ dirname, __ = os.path.split(path) os.chdir(dirname) - with tempfile.NamedTemporaryFile(suffix=".ipynb") as fout: + with tempfile.NamedTemporaryFile(suffix=".ipynb", dir=dirname) as fout: args = [ "jupyter", "nbconvert",