environment/lib/python2.7/site-packages/IPython/parallel/client/view.py
def save_ids(f, self, *args, **kwargs):
    """Keep our history and outstanding attributes up to date after a method call."""
    n_previous = len(self.client.history)
    try:
        ret = f(self, *args, **kwargs)
    finally:
        nmsgs = len(self.client.history) - n_previous
        msg_ids = self.client.history[-nmsgs:]
        self.history.extend(msg_ids)
        map(self.outstanding.add, msg_ids)
    return ret
def save_ids(f, self, *args, **kwargs):
    """Keep our history and outstanding attributes up to date after a method call."""
    n_previous = len(self.client.history)
    try:
        ret = f(self, *args, **kwargs)
    finally:
        nmsgs = len(self.client.history) - n_previous
        msg_ids = self.client.history[-nmsgs:]
        self.history.extend(msg_ids)
        map(self.outstanding.add, msg_ids)
    return ret
def save_ids ( f , self , * args , * * kwargs ) : n_previous = len ( self . client . history ) try : ret = f ( self , * args , * * kwargs ) finally : nmsgs = len ( self . client . history ) - n_previous msg_ids = self . client . history [ - nmsgs : ] self . history . extend ( msg_ids ) map ( self . outstanding . add , msg_ids ) return ret
Keep our history and outstanding attributes up to date after a method call.
Keep our history and outstanding attributes up to date after a method call .