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

Merge history from multiple sessions #44

Closed
ipython opened this issue May 10, 2010 · 4 comments
Closed

Merge history from multiple sessions #44

ipython opened this issue May 10, 2010 · 4 comments
Milestone

Comments

@ipython
Copy link
Collaborator

ipython commented May 10, 2010

Original Launchpad bug 296113: https://bugs.launchpad.net/ipython/+bug/296113
Reported by: fdo.perez (Fernando Perez).

This is a feature request from SageDays11.

Add an option for the history from multiple sessions to be merged into one, rather than the current behavior (last session to quit overwrites the file).

The idea would be to have each session periodically save its own history to a common file. Caveat: since now the history file would be shared by multiple sessions, parts of ipython that checkpoint and restore to the history file should restore from a private per-session file rather than the checkpointed one.

This should be probably off by default, since it significantly changes the history behavior and many users may not want it.

@ipython
Copy link
Collaborator Author

ipython commented May 10, 2010

[ LP comment 1 by: Ville M. Vainio, on 2008-11-10 21:10:21+00:00 ]

On Mon, Nov 10, 2008 at 2:22 AM, Fernando Perez fperez.net@gmail.com wrote:

Add an option for the history from multiple sessions to be merged into
one, rather than the current behavior (last session to quit overwrites
the file).

Note that shadow history already does part of this - you can't browse
it with cursor-up, but you can grep it with hist -g.

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

@ipython
Copy link
Collaborator Author

ipython commented May 10, 2010

[ LP comment 2 by: Fernando Perez, on 2008-11-11 00:37:58+00:00 ]

On Mon, Nov 10, 2008 at 1:10 PM, Ville M. Vainio vivainio@gmail.com wrote:

Note that shadow history already does part of this - you can't browse
it with cursor-up, but you can grep it with hist -g.

Shadow history isn't well documented. I opened a bug report for it:

https://bugs.launchpad.net/ipython/+bug/296560

@takluyver
Copy link
Member

The SQLite history branch (pull request #282) resolves this - all open sessions are kept, grouped together by session and ordered by when the session was started.

@fperez
Copy link
Member

fperez commented Mar 23, 2011

OK, I'm closing this then as a separate issue, since we're ready to work on that pull request anyway.

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

2 participants