This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / core / completer / Completer / __init__

function

IPython.core.completer:Completer.__init__

source: /IPython/core/completer.py:1101

Signature

def __init__(self, namespace = None, global_namespace = None, **kwargs)

Summary

Create a new completer for the command line.

Extended Summary

Completer(namespace=ns, global_namespace=ns2) -> completer instance.

If unspecified, the default namespace where completions are performed is __main__ (technically, __main__.__dict__). Namespaces should be given as dictionaries.

An optional second namespace can be given. This allows the completer to handle cases where both the local and global scopes need to be distinguished.

Aliases

  • IPython.core.completer.Completer.__init__