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: Clear the session history, releasing all object references, and
  optionally open a new session.
docstr_tok: ["Clear","the","session","history",",","releasing","all","object","references",",","and","optionally","open","a","new","session","."]
code: def reset(self, new_session=True):
      """Clear the session history, releasing all object references, and
      optionally open a new session."""
      self.output_hist.clear()
      # The directory history can't be completely empty
      self.dir_hist[:] = [py3compat.getcwd()]
  
      if new_session:
          if self.session_number:
              self.end_session()
          self.input_hist_parsed[:] = [""]
          self.input_hist_raw[:] = [""]
          self.new_session()
  
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 7 for calling the HistoryManager obj's underlying member method code with example usage: obj.reset(new_session) without return types