[IPython-dev] No displayhook triggered for raw 'asdf'
Brian Granger
ellisonbg at gmail.com
Sat Jan 22 21:57:04 EST 2011
Fernando,
Thomas reported this on IRC today. In current trunk we have a bug:
In [1]: "asdf"
In [1]: 10
Out[1]: 10
This happens also in my display branch. I have also checked to make
sure this is not in the display hook logic. The displayhook is indeed
set correctly, but it is just not firing:
In [2]: import sys
In [3]: sys.displayhook("asdf")
Out[3]: 'asdf'
The only thing I can imagine is that the
run_cell/run_source/run_run_code now makes decisions about mode things
get compiled in, and this is the only thing (in our control) that
determines if displayhook is called. Any ideas on this one? You know
this part of the code better than any of us.
Cheers,
Brian
--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com
More information about the IPython-dev
mailing list