question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Combine IPython and jedi completion logic

See original GitHub issue

We 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:open
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Carreaucommented, Apr 4, 2019

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.

1reaction
martinRenoucommented, Apr 4, 2019

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.

I’d love to have funding to push Jedi forward

It would be awesome.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found