Skip to content

Commit 5332a8e

Browse files
committed
Try setting directory to fix error for windows PermissionError: [Errno 13] Permission denied
1 parent f26de07 commit 5332a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _notebook_run(self, path):
6262
"""
6363
dirname, __ = os.path.split(path)
6464
os.chdir(dirname)
65-
with tempfile.NamedTemporaryFile(suffix=".ipynb") as fout:
65+
with tempfile.NamedTemporaryFile(suffix=".ipynb", dir=dirname) as fout:
6666
args = [
6767
"jupyter",
6868
"nbconvert",

0 commit comments

Comments
 (0)