#NEWLINE# def history( self , raw = True , output = False , hist_access_type = 'range' , **kwargs ) : #NEWLINE# #INDENT# "Get entries from the history list.\n\n        Parameters\n        ----------\n        raw : bool\n            If True, return the raw input.\n        output : bool\n            If True, then return the output as well.\n        hist_access_type : str\n            'range' (fill in session, start and stop params), 'tail' (fill in n)\n             or 'search' (fill in pattern param).\n        \n        session : int\n            For a range request, the session from which to get lines. Session\n            numbers are positive integers; negative ones count back from the\n            current session.\n        start : int\n            The first line number of a history range.\n        stop : int\n            The final (excluded) line number of a history range.\n        \n        n : int\n            The number of lines of history to get for a tail request.\n            \n        pattern : str\n            The glob-syntax pattern for a search request.\n\n        Returns\n        -------\n        The msg_id of the message sent.\n        " #NEWLINE# content = dict ( raw = raw , output = output , hist_access_type = hist_access_type , ** kwargs ) #NEWLINE# msg = self . session . msg ( 'history_request' , content ) #NEWLINE# self . _queue_request ( msg ) #NEWLINE# return content [ 'header' ] [ 'msg_id' ]