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

Function restore_aliases

IPython/extensions/storemagic.py:24–32  ·  view source on GitHub ↗
(ip, alias=None)

Source from the content-addressed store, hash-verified

22
23
24def restore_aliases(ip, alias=None):
25 staliases = ip.db.get('stored_aliases', {})
26 if alias is None:
27 for k,v in staliases.items():
28 # print("restore alias",k,v) # dbg
29 #self.alias_table[k] = v
30 ip.alias_manager.define_alias(k,v)
31 else:
32 ip.alias_manager.define_alias(alias, staliases[alias])
33
34
35def refresh_variables(ip):

Callers 2

restore_dataFunction · 0.85
storeMethod · 0.85

Calls 2

getMethod · 0.80
define_aliasMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…