parameters: (self, event, *args, **kwargs)
docstring: Call callbacks for ``event``.
          
          Any additional arguments are passed to all callbacks registered for this
          event. Exceptions raised by callbacks are caught, and a message printed.
docstring_summary: Call callbacks for ``event``.
          
          Any additional arguments are passed to all callbacks registered for this
          event. Exceptions raised by callbacks are caught, and a message printed.
docstring_tokens: Call callbacks for event . Any additional arguments are passed to all callbacks registered for this event . Exceptions raised by callbacks are caught and a message printed .
function: def trigger(self, event, *args, **kwargs):
          """Call callbacks for ``event``.
          
          Any additional arguments are passed to all callbacks registered for this
          event. Exceptions raised by callbacks are caught, and a message printed.
          """
          for func in self.callbacks[event][:]:
              try:
                  func(*args, **kwargs)
              except (Exception, KeyboardInterrupt):
                  print("Error in callback {} (for {}):".format(func, event))
                  self.shell.showtraceback()
function_tokens: def trigger ( self , event , * args , * * kwargs ) : for func in self . callbacks [ event ] [ : ] : try : func ( * args , * * kwargs ) except ( Exception , KeyboardInterrupt ) : print ( "Error in callback {} (for {}):" . format ( func , event ) ) self . shell . showtraceback ( )