> +            # Check the cell for syntax errors.  This way, the syntax error
> +            # will show the original input, not the transformed input.  The
> +            # downside here is that IPython magic like %timeit will not work
> +            # with transformed input (but on the other hand, IPython magic
> +            # that doesn't expect transformed input will continue to work).
> +            ast.parse(cell)
> +        except SyntaxError:
> +            pass
> +        else:
> +            cell = int_to_Integer(cell)
> +        old_run_cell(cell, *args, **kwargs)
> +
> +    if hasshell:
> +        app.shell.run_cell = my_run_cell
> +    else:
> +        app.run_cell = my_run_cell

Again, simple enough to maintain the monkey patch.

---
Reply to this email directly or view it on GitHub:
https://github.com/sympy/sympy/pull/1470/files#r1328099

-- 
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to