Skip to content

Commit 839c5c5

Browse files
committed
💚 Fix
1 parent 07da907 commit 839c5c5

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎nbproject/dev/_jupyter_communicate.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def find_nb_path_via_parent_process():
122122
potential_path = arg # Store the last one found
123123

124124
if is_nbconvert_call and "--inplace" not in cmdline:
125-
raise ValueError("Please execute 'nbconvert' with option '--inplace'.")
125+
raise ValueError(
126+
"Please execute notebook 'nbconvert' by passing option '--inplace'."
127+
)
126128

127129
if is_nbconvert_call and potential_path:
128130
# We found something that looks like an nbconvert call and an ipynb file

‎tests/test_nbconvert.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ def test_running_via_nbconvert():
88
shell=True,
99
capture_output=True,
1010
)
11-
print(result.stdout.decode())
12-
print(result.stderr.decode())
1311
assert result.returncode == 1
1412
assert (
15-
"Please execute 'nbconvert' with option '--inplace'." in result.stderr.decode()
13+
"Please execute notebook 'nbconvert' by passing option '--inplace'."
14+
in result.stderr.decode()
1615
)
1716

1817
result = subprocess.run(
@@ -22,4 +21,4 @@ def test_running_via_nbconvert():
2221
)
2322
print(result.stdout.decode())
2423
print(result.stderr.decode())
25-
assert result.returncode == 1
24+
assert result.returncode == 0

0 commit comments

Comments
 (0)