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

Function setup

IPython/sphinxext/ipython_console_highlighting.py:9–17  ·  view source on GitHub ↗

Setup as a sphinx extension.

(app)

Source from the content-addressed store, hash-verified

7from IPython.lib.lexers import IPyLexer
8
9def setup(app):
10 """Setup as a sphinx extension."""
11
12 # This is only a lexer, so adding it below to pygments appears sufficient.
13 # But if somebody knows what the right API usage should be to do that via
14 # sphinx, by all means fix it here. At least having this setup.py
15 # suppresses the sphinx warning we'd get without it.
16 metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
17 return metadata
18
19# Register the extension as a valid pygments lexer.
20# Alternatively, we could register the lexer with pygments instead. This would

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected