code: def set_history_file(self, path):
          
          if path:
              self.history = prompt_toolkit.history.FileHistory(fixpath(path))
          else:
              self.history = prompt_toolkit.history.InMemoryHistory()
docs: Set path to history file. "" produces no file.