ipython / ipython/ipykernel

More introspection of code submitted to complete_request

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

描述

The kernel [API function for completion requests (`complete_request`)](http://jupyter-client.readthedocs.io/en/latest/messaging.html#completion) does not specify the level of completeness (no pun intended) a client can expect for a certain input. For example, consider the following code:

``` python
from ipywidgets import HTML
from IPython.display import display
h = HTML("

Hello!
")
h.
display(h)
```

Suppose I hit **** at the end of the fourth line, the API response will not contain any completion matches. But the kernel does actually have enough information to import and load `HTML` and make its instance methods and attributes available. This is how many IDEs work.

I'd like to request this level of completion be added. It would be a non-breaking update with no API ramifications, and it wouldn't necessarily be an imposition on other kernel authors (though it may encourage them to update their kernels, too).

cc: @ellisonbg @fperez @Carreau

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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