SteveB, 17.06.2012 19:34:
> (copied from
>
http://stackoverflow.com/questions/11058933/cython-a-flag-to-generate-yellow-shaded-html-without-command-line
> )
>
> When you run from the command prompt "cython -a ..." you get a really nice
> HTML file with yellow shading to indicate slow python operations vs fast C
> operations. You also get this same HTML file as a link every time you
> compile Cython code in Sage. My questions are: (1) Can I get this HTML file
> if I'm compiling using distutils?
Yes, pass "annotate=True" into cythonize().
> (2) Can I get this HTML file if I'm
> compiling using pyximport? Thanks in advance!!
I don't think there's a direct option for that in pyximport, but you can
always import Cython yourself and set the option globally in the Options
module.
Stefan