ipykernel icon indicating copy to clipboard operation
ipykernel copied to clipboard

shift+tab completion on chained methods

Open mattijn opened this issue 2 years ago • 2 comments

The behaviour in this issue has been raised previously in https://github.com/jupyterlab/jupyterlab/issues/12570 and https://github.com/altair-viz/altair/pull/2770#issuecomment-1364100231.

It seems it is not possible to make the docstring/function signature appear for chained methods using ipython/ipykernel.

See the following screencast: ezgif com-gif-maker-9

As can be seen this can be reproduced with the following procedure: Copy the following in a Jupyter notebook

int().as_integer_ratio().count(

Press shift+tab to try to make the docstring/function signature appear. Result, nothing happens.

When doing the same using a XPython Raw kernel (through xeus-python) the docstring/function signature does appear. See following screencast: ezgif com-gif-maker-10

mattijn avatar Dec 24 '22 12:12 mattijn

Sorry mailinglist. I pressed shift+enter while typing which submitted the issue halfway. I finished the issue using the edit-button.

mattijn avatar Dec 24 '22 12:12 mattijn

I noticed this in jupyterlab earlier and opened https://github.com/jupyterlab/jupyterlab/issues/12570. I think it would be a big benefit if this landed in ipykernel (or if there are already plans to support shift tab on chains in some other way, maybe via lsp?). Are there any pointers for where to start looking in the code for those interested in working on a fix for this issue?

joelostblom avatar Feb 20 '23 23:02 joelostblom