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

Function _tr_help

IPython/core/inputtransformer.py:223–229  ·  view source on GitHub ↗

Translate lines escaped with: ?/??

(line_info)

Source from the content-addressed store, hash-verified

221 return '%sget_ipython().getoutput(%r)' % (line_info.pre, cmd)
222
223def _tr_help(line_info):
224 "Translate lines escaped with: ?/??"
225 # A naked help line should just fire the intro help screen
226 if not line_info.line[1:]:
227 return 'get_ipython().show_usage()'
228
229 return _make_help_call(line_info.ifun, line_info.esc, line_info.pre)
230
231def _tr_magic(line_info):
232 "Translate lines escaped with: %"

Callers

nothing calls this directly

Calls 1

_make_help_callFunction · 0.70

Tested by

no test coverage detected