ipython / ipython/ipykernel

shift+tab completion on chained methods

Ouverte
#1,065 4 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
734
Forks
412
Merge moyen
1 j 5 h
PR mergées (30 j)
8

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](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)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.