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

Method matches

IPython/core/completer.py:1267–1273  ·  view source on GitHub ↗

Filter magics, in particular remove magics that match a name present in global namespace.

(magic)

Source from the content-addressed store, hash-verified

1265 global_matches = self.global_matches(bare_text)
1266 if not explicit_magic:
1267 def matches(magic):
1268 """
1269 Filter magics, in particular remove magics that match
1270 a name present in global namespace.
1271 """
1272 return ( magic.startswith(bare_text) and
1273 magic not in global_matches )
1274 else:
1275 def matches(magic):
1276 return magic.startswith(bare_text)

Callers 1

loadTestsFromModuleMethod · 0.80

Calls

no outgoing calls

Tested by 1

loadTestsFromModuleMethod · 0.64