ipython / ipython/ipykernel

shift+tab completion on chained methods

Aberta
#1,065 4 comentários 1 reação 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
734
Forks
412
Merge médio
1d 5h
PRs com merge (30d)
8

Descrição

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)

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.