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

Function _new_id

IPython/core/display.py:126–128  ·  view source on GitHub ↗

Generate a new random text id with urandom

()

Source from the content-addressed store, hash-verified

124
125
126def _new_id():
127 """Generate a new random text id with urandom"""
128 return b2a_hex(os.urandom(16)).decode('ascii')
129
130
131def display(*objs, include=None, exclude=None, metadata=None, transient=None, display_id=None, **kwargs):

Callers 2

displayFunction · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected