Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghost suggestions using session history #13599

Open
mlucool opened this issue Mar 21, 2022 · 2 comments
Open

ghost suggestions using session history #13599

mlucool opened this issue Mar 21, 2022 · 2 comments
Labels
autosuggestions Related to fish-like autosuggestion feature (as opposed to the tab-completions) UI

Comments

@mlucool
Copy link

mlucool commented Mar 21, 2022

In general, much of the code in my session depends on other code in that session. This makes ghost suggestions awkward to use at times. As somewhat simple example, in one session I do:
image

Then in the next I type ra<tab> and IPython suggests I use x again:
image

Any suggestions on how to improve this? Is it possible for users that find this distracting to disable it?

@MrMino
Copy link
Member

MrMino commented Mar 23, 2022

In general, it is not possible to tell whether arbitrary Python code has all of its dependencies satisfied.

You can use %config TerminalInteractiveShell.autosuggestions_provider = None to disable the suggestions. Documentation on configuration will tell you how to make this permanent, should you wish to do so.

See #13451.

@Carreau
Copy link
Member

Carreau commented Mar 25, 2022

As the configuration option suggest, we want in the long term to provide other autosuggestions, we could make those based on the completer, or other methods. Right now it's true that it purely match on history exactly. If you have any suggestion on a type of provider we welcome all ideas.

@MrMino MrMino added UI autosuggestions Related to fish-like autosuggestion feature (as opposed to the tab-completions) labels Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosuggestions Related to fish-like autosuggestion feature (as opposed to the tab-completions) UI
Projects
None yet
Development

No branches or pull requests

3 participants