Show More
@@ -2273,6 +2273,11 b' class InteractiveShell(SingletonConfigurable, Magic):' | |||||
2273 | with self.display_trap: |
|
2273 | with self.display_trap: | |
2274 | try: |
|
2274 | try: | |
2275 | code_ast = ast.parse(cell, filename=cell_name) |
|
2275 | code_ast = ast.parse(cell, filename=cell_name) | |
|
2276 | except IndentationError: | |||
|
2277 | self.showsyntaxerror() | |||
|
2278 | print("If you want to paste code into IPython, try the %paste magic function.") | |||
|
2279 | self.execution_count += 1 | |||
|
2280 | return None | |||
2276 | except (OverflowError, SyntaxError, ValueError, TypeError, |
|
2281 | except (OverflowError, SyntaxError, ValueError, TypeError, | |
2277 | MemoryError): |
|
2282 | MemoryError): | |
2278 | self.showsyntaxerror() |
|
2283 | self.showsyntaxerror() |
General Comments 0
You need to be logged in to leave comments.
Login now