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

Method from_string

IPython/core/magics/ast_mod.py:280–285  ·  view source on GitHub ↗
(
        cls, template: str, mapping: Optional[Dict] = None, mangling_predicate=None
    )

Source from the content-addressed store, hash-verified

278
279 @classmethod
280 def from_string(
281 cls, template: str, mapping: Optional[Dict] = None, mangling_predicate=None
282 ):
283 return cls(
284 ast.parse(template), mapping=mapping, mangling_predicate=mangling_predicate
285 )
286
287 def visit_Module(self, code):
288 if not self.enabled:

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected