Jupyter/IPython custom autocomplete for cell magic

Viewed 20

I have read several discussions about this, but I am a bit stuck with some more advanced behavior I am seeking. As a preamble, I am using

def load_ipython_extension(ipython):
    def custom_complete(self, event):
        return [list of completions]

    ipython.set_hook('complete_command', table_complete, re_key = '%%magic')

load_ipython_extension(get_ipython())

to show autocomplete for a custom cell magic, but this only works on the same line (e.g. %%magic word), but not in the body of the cell...so how do I make that regex multiline to keep completing?

0 Answers
Related