Forums

Using Github copilot with pythonanywhere file editor

I am interested in using Github copilot to get real time code suggestions in the pythonanywhere file editor. Does anyone know if this is possible?

https://github.com/features/copilot/

No, it's not possible directly.

Ok, now I am trying to use Github copilot with vim. I followed instructions from here: https://github.com/github/copilot.vim and installed github/copilot.vim in my virtual environment.

After launching vim in Bash console and running command :Copilot setup, I get this error: Copilot: 'Vim version too old'

The installed version of vim is 8.2 and github Copilot wants 9.0.0185 or newer. Can I update to this latest vim patch?

You can't update pre-installed system packages (or install new ones) on PythonAnywhere, but you could try uploading an executable binary or building from source (but I can't guarantee it would work).

Update: I installed Neovim and am now able to use Copilot per the instructions at https://github.com/github/copilot.vim

Excellent, thanks for sharing that :-D