jupyter / jupyter_console

Jupyter Terminal Console
http://jupyter-console.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
248 stars 146 forks source link

Add option to get autosuggest from history #293

Open jsr-p opened 1 year ago

jsr-p commented 1 year ago

This PR adds the option to get autosuggestions based on the AutoSuggestFromHistory class from prompt_toolkit as is also done in IPython here. The NavigableAutoSuggestFromHistory does not seem to work as well with the jupyter_console shell as with the IPython shell (slight delay when navigating through the history which I could not identify), so I have excluded it from this PR.