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

Method _restart_thread_if_stopped

IPython/core/history.py:743–747  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

741 inst.save_thread = None
742
743 def _restart_thread_if_stopped(self) -> None:
744 # Start the thread again after it was stopped for forking
745 if self.save_thread is None and self.using_thread:
746 self.save_thread = HistorySavingThread(self)
747 self.save_thread.start()
748
749 def _get_hist_file_name(self, profile: Optional[str] = None) -> Path:
750 """Get default history file name based on the Shell's profile.

Callers 2

store_inputsMethod · 0.95
store_outputMethod · 0.95

Calls 2

HistorySavingThreadClass · 0.85
startMethod · 0.45

Tested by

no test coverage detected