shift+tab completion on chained methods

Open
#1,065 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
jupyter, jupyter-notebook, python
Domain
backend

Research direction

Reproduce the behavior in a Jupyter notebook with int().as_integer_ratio().count( and Shift+Tab, then compare it with the documented XPython Raw kernel behavior. Trace the ipython/ipykernel handling involved in showing docstrings or signatures for chained methods; done means the signature appears consistently for the reproduction case.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
734
Forks
411
Avg merge
1d 2h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ipython/ipykernel

All issues in ipython/ipykernel

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.