class_docstr: A class to organize all history-related functionality in one place.
      
class_docstr_tok: ["A","class","to","organize","all","history-related","functionality","in","one","place","."]
docstr: Get input and output history from the current session. Called by
  get_range, and takes similar parameters.
docstr_tok: ["Get","input","and","output","history","from","the","current","session",".","Called","by","get_range",",","and","takes","similar","parameters","."]
code: def _get_range_session(
      self, start=1, stop=None, raw=True, output=False
  ):
      """Get input and output history from the current session. Called by
      get_range, and takes similar parameters."""
      input_hist = (
          self.input_hist_raw if raw else self.input_hist_parsed
      )
  
      n = len(input_hist)
      if start < 0:
          start += n
      if not stop or (stop > n):
          stop = n
      elif stop < 0:
          stop += n
  
      for i in range(start, stop):
          if output:
              line = (input_hist[i], self.output_hist_reprs.get(i))
          else:
              line = input_hist[i]
          yield (0, i, line)
  
imports: from __future__ import print_function
  import atexit
  import datetime
  import os
  import re
  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 IPython.utils import py3compat
  from traitlets import Any, Bool, Dict, Instance, Integer, List, Unicode, TraitError, default, observe
  from warnings import warn
label_desc: Use image node_id 9 for calling the HistoryManager obj's underlying member method code with example usage: obj._get_range_session(start, stop, raw, output) without return types