JupyterLab extension to get AI code completions with Codeium.
jupyterlite-codeium-demo.webm
Warning
The Codeium team forked this repo to continue the development: https://github.com/Exafunction/codeium.jupyter
Warning
This extension is still very much experimental. It is not an official Codeium extension.
- Follow the instructions in the Usage section to get your API key.
- Open https://jtpio.github.io/jupyterlab-codeium in your browser
- JupyterLab >= 4.1.0
Note
This extension is also compatible with JupyterLite >= 0.3.0
To install the extension, execute:
pip install jupyterlab-codeium
Warning
Setting up the extension requires a Codeium API key. This part might still be challenging as retrieving the key requires a few manual steps at the moment. This might later be improved by providing a better auth flow.
- Go to the Codeium website and sign up for an account: https://codeium.com/
- Install the browser extension: https://codeium.com/chrome_tutorial
- Open the settings for the chrome extension and click on "Get Token"
- Right click on the extension window and select "Inspect" to open the dev tools for the extension. Then click on "Network"
- Copy the token and paste it the input area, and then press "Enter Token"
- This should log a new API request in the network tab. Click on "Preview" to get the API key.
- Go to the settings to paste the API key:
- You should now be able to use the extension. Open a Python file and start typing to see the completions.
See RELEASE
Many thanks to the codemirror-codeium
project for the inspiration and the initial implementation of the Codeium integration with CodeMirror 6: https://github.com/val-town/codemirror-codeium
The protobuf files were copied from that repo and reused as is in this project.