Control ipython history length
Asked Answered
E

1

4

The title pretty much says what I want.

I want to have more than 1000 lines of input in my ipython-history; which means that pressing arrow-up commands older are showing up. Is this possible? (probably somewhere in ipython-config()?)

Thanks

Epispastic answered 26/9, 2014 at 13:42 Comment(0)
B
3

In http://2sn.org/python/ipython_config.py there is a

# c.TerminalInteractiveShell.history_length = 10000

Does it work?

Beane answered 26/9, 2014 at 13:51 Comment(1)
Kind of. The data is obviously stored in history.sqlite, and I can find the corresponding entries there, but pressing the up-arrow doesn't bring the command backEpispastic

© 2022 - 2024 — McMap. All rights reserved.