ipython / ipython/ipykernel

shift+tab completion on chained methods

Offen
#1,065 4 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
734
Forks
412
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
8

Beschreibung

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](https://user-images.githubusercontent.com/5186265/209436133-a67beec1-6ccf-449d-ace9-aa0542980ef7.gif)

As can be seen this can be reproduced with the following procedure:
Copy the following in a Jupyter notebook
```python
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](https://user-images.githubusercontent.com/5186265/209436305-46ec53db-ea55-4dec-a0ae-93f18ad4648f.gif)

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
jupyter, jupyter-notebook, python
Bereich
backend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.