##// END OF EJS Templates
Add exec flag so inputsplitter handles multiline cells better.
Thomas Kluyver -
Show More
@@ -310,7 +310,7 b' class InputSplitter(object):'
310
310
311 self._update_indent(lines)
311 self._update_indent(lines)
312 try:
312 try:
313 self.code = self._compile(source)
313 self.code = self._compile(source, symbol="exec")
314 # Invalid syntax can produce any of a number of different errors from
314 # Invalid syntax can produce any of a number of different errors from
315 # inside the compiler, so we have to catch them all. Syntax errors
315 # inside the compiler, so we have to catch them all. Syntax errors
316 # immediately produce a 'ready' block, so the invalid Python can be
316 # immediately produce a 'ready' block, so the invalid Python can be
General Comments 0
You need to be logged in to leave comments. Login now