MCPcopy Create free account
hub / github.com/ipython/ipython / _get_hist_file_name

Method _get_hist_file_name

IPython/core/history.py:231–242  ·  view source on GitHub ↗

Find the history file for the given profile name. This is overridden by the HistoryManager subclass, to use the shell's active profile. Parameters ---------- profile : str The name of a profile which has a history file.

(self, profile='default')

Source from the content-addressed store, hash-verified

229 self.init_db()
230
231 def _get_hist_file_name(self, profile='default'):
232 """Find the history file for the given profile name.
233
234 This is overridden by the HistoryManager subclass, to use the shell's
235 active profile.
236
237 Parameters
238 ----------
239 profile : str
240 The name of a profile which has a history file.
241 """
242 return os.path.join(locate_profile(profile), 'history.sqlite')
243
244 @catch_corrupt_db
245 def init_db(self):

Callers 1

__init__Method · 0.95

Calls 1

locate_profileFunction · 0.90

Tested by

no test coverage detected