[IPython-dev] Integrating mypy with IPython using custom magic

Fernando Perez fperez.net at gmail.com
Mon Mar 20 13:45:55 EDT 2017

On Sun, Mar 19, 2017 at 8:04 PM, Stephan Fitzpatrick <
knowsuchagency at gmail.com> wrote:

> For those interested, I wrote a cell magic to allow one to run a cell
> through
> mypy <http://mypy-lang.org/>.
> The link to the gist is here
> <https://gist.github.com/knowsuchagency/f7b2203dd613756a45f816d6809f01a6>.

Cool, thanks! This would make for a nice newsletter item!

> Anyone interested in the article on how/why I wrote it with example code
> can find it here
> <http://journalpanic.com/post/spice-up-thy-jupyter-notebooks-with-mypy/>.

Quick q: you mention you configured IPython to print not only the last
evaluated statement but more than that.  I admit I didn't realize we'd made
that configurable! (not too surprising, the project has grown so much
there's quite a bit of the codebase, even in the IPython kernel, I don't
recognize anymore).  Can you point me to how you did it? Would love to
learn :)



Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20170320/d94c2f62/attachment.html>

More information about the IPython-dev mailing list