##// END OF EJS Templates
don't allow cell magics mid-cell
MinRK -
Show More
@@ -329,7 +329,14 b' def cellmagic(end_on_blank_line=False):'
329 329 line = ''
330 330 while True:
331 331 line = (yield line)
332 if (not line) or (not line.startswith(ESC_MAGIC2)):
332 # consume leading empty lines
333 while not line:
334 line = (yield line)
335
336 if not line.startswith(ESC_MAGIC2):
337 # This isn't a cell magic, idle waiting for reset then start over
338 while line is not None:
339 line = (yield line)
333 340 continue
334 341
335 342 if cellmagic_help_re.match(line):
General Comments 0
You need to be logged in to leave comments. Login now