[IPython-user] Problems with "_" syntax output cache

Ville M. Vainio vivainio@gmail....
Sat Dec 20 11:14:49 CST 2008


On Wed, Dec 17, 2008 at 5:34 AM, Erik Tollerud <erik.tollerud@gmail.com> wrote:

> I recently changed from using ipythonrc profile config files to the
> new ipy_profile_whatever.py files ... everything worked fine except
> for one strange thing: All of a sudden, using "_", "__", "___", or
> '_#" to access the output cache no longer seems to work.  If I use "_"
> I see an object that prints as "<bound method NullTranslations.gettext
> of <gettext.NullTranslations instance at 0xae73f0c>>", "__" or "___"
> just give an empty string, and "_#" raises a NameError.  How did I
> break this cache, and how do I get it back?

Perhaps you can check you 'cache_size' option, should be > 3.

[c:p/leo]|51> _ip.options.cache_size
         <51> 1000

Did you change it to something else?

-- 
Ville M. Vainio
http://tinyurl.com/vainio


More information about the IPython-user mailing list