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

Method name_session

IPython/core/history.py:581–585  ·  view source on GitHub ↗

Give the current session a name in the history database.

(self, name)

Source from the content-addressed store, hash-verified

579 self.session_number = 0
580
581 def name_session(self, name):
582 """Give the current session a name in the history database."""
583 with self.db:
584 self.db.execute("UPDATE sessions SET remark=? WHERE session==?",
585 (name, self.session_number))
586
587 def reset(self, new_session=True):
588 """Clear the session history, releasing all object references, and

Callers

nothing calls this directly

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected