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

Method add_usage

IPython/core/magic_arguments.py:102–103  ·  view source on GitHub ↗
(self, usage, actions, groups, prefix="::\n\n  %")

Source from the content-addressed store, hash-verified

100 # Override the default prefix ('usage') to our % magic escape,
101 # in a code block.
102 def add_usage(self, usage, actions, groups, prefix="::\n\n %"):
103 super(MagicHelpFormatter, self).add_usage(usage, actions, groups, prefix)
104
105class MagicArgumentParser(argparse.ArgumentParser):
106 """ An ArgumentParser tweaked for use by IPython magics.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected