ipython / ipython/ipykernel

shift+tab completion on chained methods

Abierto
#1,065 4 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
734
Forks
412
Merge medio
1 d 5 h
PR fusionados (30 d)
8

Descripción

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)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.