MCPcopy Index your code
hub / github.com/secdev/scapy / update_ipython_session

Function update_ipython_session

scapy/main.py:445–455  ·  view source on GitHub ↗

Updates IPython session with a custom one

(session)

Source from the content-addressed store, hash-verified

443##############################
444
445def update_ipython_session(session):
446 # type: (Dict[str, Any]) -> None
447 """Updates IPython session with a custom one"""
448 if "_oh" not in session:
449 session["_oh"] = session["Out"] = {}
450 session["In"] = {}
451 try:
452 from IPython import get_ipython
453 get_ipython().user_ns.update(session)
454 except Exception:
455 pass
456
457
458def _scapy_prestart_builtins():

Callers 1

init_sessionFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected