MCPcopy Index your code
hub / github.com/ipython/ipython / all_completions

Method all_completions

IPython/core/completer.py:2177–2186  ·  view source on GitHub ↗

Wrapper around the completion methods for the benefit of emacs.

(self, text: str)

Source from the content-addressed store, hash-verified

2175 ]
2176
2177 def all_completions(self, text: str) -> list[str]:
2178 """
2179 Wrapper around the completion methods for the benefit of emacs.
2180 """
2181 prefix = text.rpartition('.')[0]
2182 with provisionalcompleter():
2183 return ['.'.join([prefix, c.text]) if prefix and self.use_jedi else c.text
2184 for c in self.completions(text, len(text))]
2185
2186 return self.complete(text)[1]
2187
2188 def _clean_glob(self, text:str):
2189 return self.glob("%s*" % text)

Callers 2

Calls 3

completionsMethod · 0.95
completeMethod · 0.95
provisionalcompleterFunction · 0.85

Tested by 2