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.

(Quasi-)incorrect keyword argument completion

See original GitHub issue

The signature e.g. of np.frombuffer is

frombuffer(buffer, dtype=float, count=-1, offset=0)

but frombuffer(<tab> proposes completions with count=, dtype= and offset=. Note that it is unlikely that one will ever want to write a call that starts with np.frombuffer(count=...), because you’d typically want to pass the buffer argument first (yes, I know, technically you can pass it as keyword after another keyword argument. I don’t think that’s a common case 😃)

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
anntzercommented, Nov 15, 2016

On a related note, np.load("<TAB> (note the presence of the quote) completes kwargs (and globals) rather than filenames, which is incorrect.

0reactions
krassowskicommented, Dec 11, 2022

@Ark-kun the behaviour you suggest can be implemented by (conditionally) returning suppress=True using the new matcher API / docs. The python_func_kw_matcher would need to be ported to matcher API v2 which is mostly just changing the function signature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Completion in IPython (jupyter) does now work (unexpected ...
The latest upgrade to jedi broke completion in all of IPython and answers to a 5-years old question about a different issue are...
Read more >
Last jedi release (0.18.0) is incompatible with ipython ... - GitHub
Every time when I tried to use tab completion in IPython it crashed. Glad I found a solution. 2
Read more >
Disciplined quasiconvex programming - Stanford University
A quasiconvex program (QCP) is a mathematical optimization problem in which the objective is to minimize a quasiconvex function over a convex ...
Read more >
Disciplined Quasiconvex Programming - arXiv
A quasiconvex program (QCP) is a mathematical optimization problem in which the objective is to minimize a quasiconvex function over a convex.
Read more >
Numerical resolution by the quasi-reversibility method of a ...
This paper concerns the numerical resolution of a data completion problem for the time-harmonic Maxwell equations in the electric field.
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