ipython / ipython/ipykernel

More introspection of code submitted to complete_request

Aberta
#154 3 comentários 0 reações 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 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

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.