Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Prototype] Generalize magic machinery to allow completion.
In particular useful for multi language integration. One of defect is that you can't really complete. But what you can do is actually dispatch the completion to the Magic Class (if you really interested in integration anyway you go with a magic Class. And dispatch to the class. So far it completes only for cell magics. I need to poke at InputSpliter to know if we can figure out we're completing a line magic which is not at the beginning of the line. There are a few question remaining: - How to tell IPython to give-up (or not) on completing using jedi and Python completion. Indeed for %%timeit you just want to __extend__ completion with your own. For %%sql, you don't want to include Python completions. - What API should we provide ? - here is line/cell/cursor figure things out with a single function - Allow user to register a separate completer for the first line, and the core of the cell independently. I'd like to have a prototype that can forward the completion to another kernel (hook into the python2 magic and have a Python 3 kernel that control a Python2 kernel ?
- Loading branch information
Showing
4 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters