Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit aedb0df

Browse files
committed
Fix runipy.py
1 parent ac4d1f4 commit aedb0df

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111

1212
<artifactId>scijava-jupyter-kernel</artifactId>
13-
<version>0.2.7-SNAPSHOT</version>
13+
<version>0.2.7</version>
1414

1515
<name>scijava-jupyter-kernel</name>
1616
<description>A Java kernel for Jupyter.</description>

scripts/runipy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# CI service used is Travis.
44

55
import argparse
6+
import os
67

78
import nbformat
89
from nbconvert.preprocessors import ExecutePreprocessor
@@ -17,7 +18,7 @@ def execute_notebook(notebook_path, kernel_name=None):
1718
ep = ExecutePreprocessor(timeout=600, kernel_name=kernel_name)
1819

1920
try:
20-
ep.preprocess(nb, {'metadata': {'path': 'notebooks/'}})
21+
ep.preprocess(nb, {'metadata': {'path': os.path.dirname(notebook_path)}})
2122
except CellExecutionError:
2223
msg = 'Error executing the notebook "{}".\n\n'.format(notebook_path)
2324
print(msg)

0 commit comments

Comments
 (0)