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

Method get_alias

IPython/core/alias.py:233–236  ·  view source on GitHub ↗

Return an alias, or None if no alias by that name exists.

(self, name)

Source from the content-addressed store, hash-verified

231 magic_name=name)
232
233 def get_alias(self, name):
234 """Return an alias, or None if no alias by that name exists."""
235 aname = self.linemagics.get(name, None)
236 return aname if isinstance(aname, Alias) else None
237
238 def is_alias(self, name):
239 """Return whether or not a given name has been defined as an alias"""

Callers 3

is_aliasMethod · 0.95
retrieve_aliasMethod · 0.95

Calls

no outgoing calls

Tested by 1