Commit 2bc70f4f authored by SOLIMAN Sylvain's avatar SOLIMAN Sylvain
Browse files

timeout magic redone

parent ebc2690e
......@@ -161,6 +161,10 @@ class BiochamKernel(IPythonKernel):
except FileNotFoundError:
return "File doesn't exists", []
if magic.startswith('timeout '):
self.timeout = int(magic[8:].split()[0])
return 'Timeout set to ' + str(self.timeout), []
if magic.startswith('slider '):
parameters = magic[7:].split()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment