[IPython-User] Reusable notebooks
Mon Jul 23 22:33:42 CDT 2012
On Mon, Jul 23, 2012 at 11:17 PM, Cavendish McKay <email@example.com
> One other approach that might be worth looking into is using the
> %store magic. It's designed for individual variables rather than the
> state of the interpreter as a whole, but perhaps doing something like
> %store locals would work. Then, to restore state, just do %store -r.
> On Mon, Jul 23, 2012 at 11:04 PM, Adam Hughes <firstname.lastname@example.org>
> > Alright thanks for the help! I'll see if I can come up with anything in
> > near future.
> > On Mon, Jul 23, 2012 at 6:48 PM, Thomas Kluyver <email@example.com>
> >> On 23 July 2012 23:30, Adam Hughes <firstname.lastname@example.org> wrote:
> >> > I was thinking maybe the concept of a checkpoint. Imagine you have 20
> >> > cells
> >> > of code that works and you don't want to have to keep rerunning it
> >> > because
> >> > that could be time consuming or resource costly. Instead, you tell
> >> > notebook to save a checkpoint and it could temporarily store all the
> >> > necessary data structures at that last cell. Then, the user could
> >> > simply
> >> > start running some exploratory analysis from cells 21 on, and then
> >> > the
> >> > user chooses to "run from checkpoint", it uses the values stored at
> >> > 20
> >> > to initiate cells 20-25. I think this might be a really simple and
> >> > powerful
> >> > way to fix this issue. It would be cool because I send the checkpoint
> >> > data
> >> > to students and friends a branching off point for their own work.
> >> > anything like this exist yet?
> >> It's a very interesting idea, and I don't think anything quite like
> >> that does exist yet.
> >> One idea we've had knocking around for a while is to integrate dill
> >>  with IPython to provide some sort of 'snapshot' capability, where
> >> you can save the interpreter state and come back to it later. Of
> >> course, data in files or on the network may change in the meantime,
> >> but there are probably many cases where that's not a problem. If you'd
> >> like to develop something around that - perhaps initially as an
> >> extension , I think you'd definitely get some interest.
> >>  http://dev.danse.us/trac/pathos/wiki/dill
> >>  http://ipython.org/ipython-doc/stable/config/extensions/index.html
> >> Best wishes,
> >> Thomas
> >> _______________________________________________
> >> IPython-User mailing list
> >> IPython-User@scipy.org
> >> http://mail.scipy.org/mailman/listinfo/ipython-user
> > _______________________________________________
> > IPython-User mailing list
> > IPython-User@scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-user
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User