Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store history as plain text #3389

Closed
l0b0 opened this issue May 31, 2013 · 3 comments
Closed

Store history as plain text #3389

l0b0 opened this issue May 31, 2013 · 3 comments
Milestone

Comments

@l0b0
Copy link

l0b0 commented May 31, 2013

To be able to maintain a list of useful commands it would help if commands were simply appended to $IPYTHON_DIR/history or $IPYTHON_DIR/[profile_name]/history as plain text.

@Carreau
Copy link
Member

Carreau commented May 31, 2013

To be able to maintain a list of useful commands

Not sure what you mean, recuperate the history ?

sqlite3 -line history.sqlite 'select `source` from history;'

@minrk
Copy link
Member

minrk commented May 31, 2013

We store the history in an sqlite database, so it doesn't make much sense to duplicate this functionality into a plaintext file (which we used to use before switching to sqlite for a variety of reasons). You can always export your history with %history -f FILENAME.

@minrk
Copy link
Member

minrk commented May 31, 2013

This can be covered with a startup script, as answered on your duplicate SO Question, closing here.

@minrk minrk closed this as completed May 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants