Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add exec flag so inputsplitter handles multiline cells better.

  • Loading branch information...
commit e55836ea13f138fb43e47441af8b2e08af537a19 1 parent d7437b6
@takluyver authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  IPython/core/inputsplitter.py
View
2  IPython/core/inputsplitter.py
@@ -310,7 +310,7 @@ def push(self, lines):
self._update_indent(lines)
try:
- self.code = self._compile(source)
+ self.code = self._compile(source, symbol="exec")
# Invalid syntax can produce any of a number of different errors from
# inside the compiler, so we have to catch them all. Syntax errors
# immediately produce a 'ready' block, so the invalid Python can be
Please sign in to comment.
Something went wrong with that request. Please try again.