This project has been archived by its maintainers, and is no longer receiving any updates.
jupyterlab-codeium
JupyterLab extension to get AI code completions with Codeium.
https://github.com/jtpio/jupyterlab-codeium/assets/591645/7ec0a6fa-9c51-49a8-89b4-77b431f4bda9
[!WARNING] This extension is still very much experimental. It is not an official Codeium extension.
✨ Try it in your browser ✨
- Follow the instructions in the Usage section to get your API key.
- Open https://jtpio.github.io/jupyterlab-codeium in your browser
Requirements
- JupyterLab >= 4.1.0
[!NOTE] This extension is also compatible with JupyterLite >= 0.3.0
Install
To install the extension, execute:
pip install jupyterlab-codeium
Usage
[!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.
Contributing
Packaging and releasing the extension
See RELEASE
Credits
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.
Release files for jupyterlab-codeium 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jupyterlab_codeium-0.1.1.tar.gz | 329.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jupyterlab_codeium-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 385.2 kB
Release files / jupyterlab_codeium-0.1.1.tar.gz
| Download URL | jupyterlab_codeium-0.1.1.tar.gz |
|---|---|
| Size | 329.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91cf2677edaebf92eddf72e3f2d90ce31392f4341a282efe2360b4c1253aaa36
|
|
BLAKE2b-256 checksum How to use checksums |
481a6938fb77d45ab042c7c75453806e7b2b38611d4bd0145ad607651a5cf987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Release files / jupyterlab_codeium-0.1.1-py3-none-any.whl
| Download URL | jupyterlab_codeium-0.1.1-py3-none-any.whl |
|---|---|
| Size | 56.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dd2d5b9ad65f870da2eaea2b7875a13e3f63367850eace44956ca309778b46e
|
|
BLAKE2b-256 checksum How to use checksums |
39f3d1bf836200e8836b3fffeb84cdf3e19d532349e96a48d6ccc27acb213085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|