#NEWLINE# def __call__( self , context , * args , **kwargs ) : #NEWLINE# #INDENT# "\n        Run all callbacks, return a list with results.\n\n        Exceptions in callbacks are printed using IPython's\n        showtraceback, and their result is ignored.\n\n        If not running under IPython, exceptions are raised.\n        " #NEWLINE# set_context ( context ) #NEWLINE# results = [ ] #NEWLINE# for function in result . callbacks : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# result = function ( * args , ** kwargs ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# ip = get_ipython ( ) #NEWLINE# if ( ( ip is None ) or True ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ip . showtraceback ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# results . append ( result ) #NEWLINE# #UNINDENT# #UNINDENT# return results