Open pqn opened 1 year ago
Hello! is there any sort of update on any of the sites listed here, or will they be posted / checked off when they become compatible? In particular looking at CodeSandbox. I've tried adding the site to the Allow List, it actually causes the editor to not work so I'm assuming it is due to pruning / webpack. Thank you for any update!
We are working through CodeSandbox right now, stay tuned. Contributions or ideas are welcome for the other websites.
We're excited to announce a direct integration with CodeSandbox, no extension required! https://codesandbox.io/blog/introducing-ai-code-autocomplete-powered-by-codeium https://codeium.com/blog/codesandbox-codeium-partnership-announcement
Hey folks,
JupyterLab 4/CodeMirror 6
JupyterLab 4.1 added an inline completer API: https://jupyterlab.readthedocs.io/en/latest/extension/extension_points.html#inline-completer
Using the inline completer API means that this functionality can be distributed as a regular JupyterLab extension, without having to inject code in a CodeMirror 6 editor.
I spent some time experimenting with this and put up this first prototype: https://github.com/jtpio/jupyterlab-codeium. It's still very early, but can be tested in the browser directly with JupyterLite: http://jtpio.github.io/jupyterlab-codeium/ For now the auth flow involves a few manual steps and requires providing an API key directly, but could likely be improved to follow the same flow as for other Codeium integrations (https://github.com/jtpio/jupyterlab-codeium/issues/3).
Let me know what you think and if there is interest in having such extension!
@jtpio this seems great! Let us know how we can support you on this.
Thanks @pqn!
A few questions:
Hey Exafunction, I think plenty of people is using jupyterlab 4
, it was released almost one year ago.
@jtpio:
Is there a documented way for implementing the auth flow that would redirect the user to the Codeium website to retrieve their API key automatically? (logged in https://github.com/jtpio/jupyterlab-codeium/issues/3)
For demo purposes on http://jtpio.github.io/jupyterlab-codeium, would it be fine to use the same API key as the one used for the Codeium Playground? So folks can try the extension more easily without having to find and put their own API key.
I can generate you a different one to use there and send it over email, but feel free to use the same one for now.
Would you be interested in having this repo in the https://github.com/Exafunction GitHub organization (and potentially helping developing it), or would you prefer having it somewhere else?
Yes, we can move it into our organization and support development. I will ask around within the company to see who we will assign to the active development and maintenance.
@jtpio
FYI, I have forked your repo to https://github.com/Exafunction/codeium.jupyter, we will be doing further development on the extension there.
@pqn
Hey there!
Will editors like vscode.dev or Chatgpt Canvas work if I white-list them and they use Monaco or code mirror?
Or does support for each individual online IDE need to be added directly to the extension?
I tried adding Chatgpt.com with its new Canvas editor but it doesn't seem to work.
This issue is meant to track known issues with various well-known sites. Resolution will usually either require contacting the website to help support Codeium by changing their website build, or creating an alternative to the CodeMirror 5 and Monaco injection code which uses raw HTML/JS.
Monaco
The issue here is generally that the Monaco version being used is too old, or webpack is pruning the required inline completion features since they aren't being used by the website themselves.
JupyterLab 4/CodeMirror 6
CodeMirror 6
Ace