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

Function _tr_magic

IPython/core/inputtransformer2.py:338–341  ·  view source on GitHub ↗

Translate lines escaped with a percent sign: %

(content)

Source from the content-addressed store, hash-verified

336 return _make_help_call(content, '??')
337
338def _tr_magic(content):
339 "Translate lines escaped with a percent sign: %"
340 name, _, args = content.partition(' ')
341 return 'get_ipython().run_line_magic(%r, %r)' % (name, args)
342
343def _tr_quote(content):
344 "Translate lines escaped with a comma: ,"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected