IPython/core/history.py: Handle RuntimeError on Thread.start (#14318)...
IPython/core/history.py: Handle RuntimeError on Thread.start (#14318)
On the emscripten (Pyodide), `HistorySavingThread.start` raises
`RuntimeError`.
We handle this exception here.
It also reveals a misplaced `atexit` call, which we also fix here.