Skip to content

Commit df03086

Browse files
author
Doug Blank
committed
Changed name to execute_interactive
1 parent ec6d7a9 commit df03086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_client/runapp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ def start(self):
109109
self.log.debug("jupyter run: executing `%s`" % filename)
110110
with open(filename) as fp:
111111
code = fp.read()
112-
reply = self.kernel_client.execute(code, reply=True)
112+
reply = self.kernel_client.execute_interactive(code, timeout=OUTPUT_TIMEOUT)
113113
return_code = 0 if reply['content']['status'] == 'ok' else 1
114114
if return_code:
115115
raise Exception("jupyter-run error running '%s'" % filename)
116116
else:
117117
code = sys.stdin.read()
118-
reply = self.kernel_client.execute(code, reply=True)
118+
reply = self.kernel_client.execute_interactive(code, timeout=OUTPUT_TIMEOUT)
119119
return_code = 0 if reply['content']['status'] == 'ok' else 1
120120
if return_code:
121121
raise Exception("jupyter-run error running 'stdin'")

0 commit comments

Comments
 (0)