ipykernel
ipykernel copied to clipboard
shift+tab completion on chained methods
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:

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:

Sorry mailinglist. I pressed shift+enter while typing which submitted the issue halfway. I finished the issue using the edit-button.
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?