Re: [jupyter] Time Travel Analysis or Undo in Jupyter

2018-02-23 Thread Brian Granger
I built something similar to reinteract as well last year. Doing the simple case isn't very hard - was just deep copying the namespace before exec'ing each cell and storing those as a python list. As Robert mentions, doing this type of thing well and efficiently, gets to be much more difficult. Ho

Re: [jupyter] Time Travel Analysis or Undo in Jupyter

2018-02-23 Thread Robert Schroll
Hi Jayme, A while back, I was involved in the Reinteract project [1], which had the same goal as you with a different mechanism. Reinteract provided a notebook-like interface, but it recorded the state in which each expression was executed. When you went back to a previous line, it would rewind

Re: [jupyter] Time Travel Analysis or Undo in Jupyter

2018-02-22 Thread Jason Grout
It sounds like you are asking about reverting the kernel computation state to some previous state. With arbitrary side effects possible, I think this a difficult problem in general. However, if you constrained your computation to pure functions, or essentially checkpointed your project state at eve

Re: [jupyter] Time Travel Analysis or Undo in Jupyter

2018-02-22 Thread Paul Ivanov
Hi Jayme, two things come to mind immediately - bpython has a linear single version of this capability - it's called "rewind": https://bpython-interpreter.org/ The more general case sounds related to some of Philip Guo's PhD thesis work around IncPy: http://pgbovine.net/PhD-dissertation.htm Bot