From 5332a8ea06df717301154a1fe9e7fa5bfa518fc7 Mon Sep 17 00:00:00 2001 From: birgits Date: Fri, 12 Jan 2024 13:56:37 -0800 Subject: [PATCH] Try setting directory to fix error for windows PermissionError: [Errno 13] Permission denied --- example/test_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",