Filter magics, in particular remove magics that match a name present in global namespace.
(magic)
| 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) |
no outgoing calls