imbue-ai / jupyter_ascending.vim

Vim plugin to interact with jupyter_ascending
MIT License
166 stars 16 forks source link

Use jupyter's autocompletion #14

Open Eloitor opened 1 year ago

Eloitor commented 1 year ago

Is it possible to use Jupyter's autocompletion? For example:

# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: percent
#       format_version: '1.3'
#       jupytext_version: 1.3.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# %%
A = []

# %%
A.append()

After running the first cell in Jupyter, I would like ".append(" to be autocompleted, just as it works in jupyter. Is this possible?

joshalbrecht commented 1 year ago

Unfortunately that's not possible right now.

It might actually be a bit slower than you would want in practice, even if it could be implemented. I'd be open to a PR though!