ipython/ipython — pull request #2225 by bfroehle (2012-07-31 20:37:28+00:00)
Title: Add "--annotate" option to `%%cython` magic.

Closes #1976 and replaces pull-request #2147 (Windows only).

In addition, I've removed the `ctx` parameter from `cythonize` which
is not actually parsed in Cython > 0.13. The previous coded didn't
work with Cython of that age either (as `Cython.Build` didn't exist as
a module yet).

With Cython 0.14 and 0.15 there is a bug where the `force` flag to
`cythonize` isn't getting picked up, so the annotated HTML isn't being
generated if the user already ran `%%cython` for that same bit of
code. To trigger, run something like:

```
%%cython

%%cython -a

```

In my testing, everything seems to work correctly in 0.15.1 and later.