class_docstr: Access the history database without adding to it.
  
  This is intended for use by standalone history tools. IPython shells use
  HistoryManager, below, which is a subclass of this.
class_docstr_tok: ["Access","the","history","database","without","adding","to","it",".","This","is","intended","for","use","by","standalone","history","tools",".","IPython","shells","use","HistoryManager",",","below",",","which","is","a","subclass","of","this","."]
docstr: Get info about a session.
  
  Parameters
  ----------
  session : int
      Session number to retrieve.
  
  Returns
  -------
  session_id : int
      Session ID number
  start : datetime
      Timestamp for the start of the session.
  end : datetime
      Timestamp for the end of the session, or None if IPython crashed.
  num_cmds : int
      Number of commands run, or None if IPython crashed.
  remark : unicode
      A manually set description.
docstr_tok: ["Get","info","about","a","session",".","Parameters","--","--","--","--","--","session",":","int","Session","number","to","retrieve",".","Returns","--","--","--","-","session_id",":","int","Session","ID","number","start",":","datetime","Timestamp","for","the","start","of","the","session",".","end",":","datetime","Timestamp","for","the","end","of","the","session",",","or","None","if","IPython","crashed",".","num_cmds",":","int","Number","of","commands","run",",","or","None","if","IPython","crashed",".","remark",":","unicode","A","manually","set","description","."]
code: def get_session_info(self, session):
      """Get info about a session.
  
      Parameters
      ----------
      session : int
          Session number to retrieve.
  
      Returns
      -------
      session_id : int
          Session ID number
      start : datetime
          Timestamp for the start of the session.
      end : datetime
          Timestamp for the end of the session, or None if IPython crashed.
      num_cmds : int
          Number of commands run, or None if IPython crashed.
      remark : unicode
          A manually set description.
      """
      query = "SELECT * from sessions where session == ?"
      return self.db.execute(query, (session,)).fetchone()
  
imports: import atexit
  import datetime
  from pathlib import Path
  import re
  import sqlite3
  import threading
  from traitlets.config.configurable import LoggingConfigurable
  from decorator import decorator
  from IPython.utils.decorators import undoc
  from IPython.paths import locate_profile
  from traitlets import Any, Bool, Dict, Instance, Integer, List, Unicode, Union, TraitError, default, observe
label_desc: Use image node_id 8 for calling the HistoryAccessor obj's underlying member method code with example usage: obj.get_session_info(session) and returns: self