ipython / ipython/ipykernel

shift+tab completion on chained methods

未關閉
#1,065 4 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
734
分支
412
平均合併
1 天 5 小時
30 天內合併 PR
8

描述

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)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。