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: If database output logging is enabled, this saves all the
  outputs from the indicated prompt number to the database. It's
  called by run_cell after code has been executed.
  
  Parameters
  ----------
  line_num : int
    The line number from which to save outputs
docstr_tok: ["If","database","output","logging","is","enabled",",","this","saves","all","the","outputs","from","the","indicated","prompt","number","to","the","database",".","It's","called","by","run_cell","after","code","has","been","executed",".","Parameters","--","--","--","--","--","line_num",":","int","The","line","number","from","which","to","save","outputs"]
code: def store_output(self, line_num):
      """If database output logging is enabled, this saves all the
      outputs from the indicated prompt number to the database. It's
      called by run_cell after code has been executed.
  
      Parameters
      ----------
      line_num : int
        The line number from which to save outputs
      """
      if (not self.db_log_output) or (
          line_num not in self.output_hist_reprs
      ):
          return
      output = self.output_hist_reprs[line_num]
  
      with self.db_output_cache_lock:
          self.db_output_cache.append((line_num, output))
      if self.db_cache_size <= 1:
          self.save_flag.set()
  
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 12 for calling the HistoryManager obj's underlying member method code with example usage: obj.store_output(line_num) without return types