MCPcopy Index your code
hub / github.com/ipython/ipython / _get_hist_file_name

Method _get_hist_file_name

IPython/core/history.py:308–319  ·  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: str = "default")

Source from the content-addressed store, hash-verified

306 self.init_db()
307
308 def _get_hist_file_name(self, profile: str = "default") -> Path:
309 """Find the history file for the given profile name.
310
311 This is overridden by the HistoryManager subclass, to use the shell's
312 active profile.
313
314 Parameters
315 ----------
316 profile : str
317 The name of a profile which has a history file.
318 """
319 return Path(locate_profile(profile)) / "history.sqlite"
320
321 @catch_corrupt_db
322 def init_db(self) -> None:

Callers 1

__init__Method · 0.95

Calls 1

locate_profileFunction · 0.90

Tested by

no test coverage detected