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

Function pylight

IPython/core/oinspect.py:49–50  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

47from pygments.formatters import HtmlFormatter
48
49def pylight(code):
50 return highlight(code, PythonLexer(), HtmlFormatter(noclasses=True))
51
52# builtin docstrings to ignore
53_func_call_docstring = types.FunctionType.__call__.__doc__

Callers 1

code_formatterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected