Combine IPython and jedi completion logic
See original GitHub issueWe are trying to implement traits autocompletion in traitlets
, (see this PR). We achieve this by overwriting the __init__
method __signature__
. It works just fine when jedi
is not enabled. The thing is that does not work with jedi
(see this issue).
Until it is fixed in jedi
, I guess we could fix it in IPython by taking into account both the completion from jedi
and the completion computed in IPython (it looks like IPython autocompletion logic takes the __signature__
into account?).
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Module: core.completer — IPython 8.7.0 documentation
Starting with IPython 6.0, this module can make use of the Jedi library to generate completions both using static analysis of the code,...
Read more >Tab completions for paths broken again in 7.2.0 #11530
Tab completion for paths within strings seems to be broken again (previously noted many ... Combine IPython and jedi completion logic #11673.
Read more >How to enable Autocompletion in Jupyter Notebook ...
Once you have enabled and run the %config Completer.use_jedi = False magic command, you can trigger the code autocompletion by pressing the tab ......
Read more >How to have win32com code completion in IPython?
Concretely, the logic for auto-completion, which in turn relies on _prop_map_get_ , can be found in scintilla.view.CScintillaView._AutoComplete ...
Read more >https://raw.githubusercontent.com/ipython/ipython/...
_origin = 'fake' def __repr__(self): return '<Fake completion object jedi has crashed>' class Completion: """ Completion object used and return by IPython ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There is a longstanding plan to try to get all the IPython features into Jedi – I’d love to have funding to push Jedi forward. So yes this would be great. I’m also trying to get funding to get @LucianaMarques for this winter outreachy, I believe she is interesting in doing some work on the completer.
Sure! I would be happy to collaborate and contribute a bit to the IPython completion logic, I feel like it deserves a bit more love at some places 😃
I wanted to try and fix this other issue, if you want to take a look at it. It seems like people are interested in having only path completion when typing in a string, and that this part of the code is supposed to achieve this but does not work.
It would be awesome.