diff --git a/README.md b/README.md index e1aa0b3..cc22efc 100644 --- a/README.md +++ b/README.md @@ -48,15 +48,11 @@ pip install jupyterlab-codeium ![Enter Token](./img/2-api-key.png) -7. Start JupyterLab. At first launch you should see the following dialog: - -![Enter API Key](./img/3-jupyterlab-dialog.png) - -8. Go to the settings to paste the API key: +7. Go to the settings to paste the API key: ![Settings](./img/4-jupyterlab-settings.png) -9. You should now be able to use the extension. Open a Python file and start typing to see the completions. +8. You should now be able to use the extension. Open a Python file and start typing to see the completions. ![Completions](./img/5-example.png) diff --git a/package.json b/package.json index 85d74e7..5eae58a 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "@connectrpc/connect": "^1.4.0", "@connectrpc/connect-web": "^1.4.0", "@jupyterlab/application": "^4.0.0", - "@jupyterlab/apputils": "^4.0.0", "@jupyterlab/codemirror": "^4.0.0", "@jupyterlab/completer": "^4.0.0", "@jupyterlab/settingregistry": "^4.0.0", diff --git a/src/index.ts b/src/index.ts index 2e5f80a..c7592ae 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,6 @@ import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; -import { Dialog, showDialog } from '@jupyterlab/apputils'; import { IEditorLanguageRegistry } from '@jupyterlab/codemirror'; import { ICompletionProviderManager } from '@jupyterlab/completer'; import { ISettingRegistry } from '@jupyterlab/settingregistry'; @@ -31,16 +30,6 @@ const plugin: JupyterFrontEndPlugin = { const updateKey = () => { const apiKey = settings.get('apiKey').composite as string; provider.apiKey = apiKey; - - if (!apiKey) { - const message = 'Codeium API key is not set'; - console.warn(message); - void showDialog({ - title: message, - body: 'Please set the Codeium API key in the settings editor', - buttons: [Dialog.okButton()] - }); - } }; settings.changed.connect(() => updateKey()); diff --git a/yarn.lock b/yarn.lock index a1e880e..94592aa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -638,7 +638,7 @@ __metadata: languageName: node linkType: hard -"@jupyterlab/apputils@npm:^4.0.0, @jupyterlab/apputils@npm:^4.3.1": +"@jupyterlab/apputils@npm:^4.3.1": version: 4.3.1 resolution: "@jupyterlab/apputils@npm:4.3.1" dependencies: @@ -3974,7 +3974,6 @@ __metadata: "@connectrpc/connect": ^1.4.0 "@connectrpc/connect-web": ^1.4.0 "@jupyterlab/application": ^4.0.0 - "@jupyterlab/apputils": ^4.0.0 "@jupyterlab/builder": ^4.0.0 "@jupyterlab/codemirror": ^4.0.0 "@jupyterlab/completer": ^4.0.0