More introspection of code submitted to complete_request
- 主要語言
- 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("
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 還沒有評估資料。