Skip to content

Commit

Permalink
Merge pull request #1015 from c-bata/jupyterlab-command-palette
Browse files Browse the repository at this point in the history
Open `jupyterlab-optuna` from the command palette
  • Loading branch information
c-bata authored Jan 22, 2025
2 parents 1d74244 + d419f67 commit 2882d9f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions jupyterlab/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ namespace CommandIDs {
* Initialization data for the jupyterlab-optuna extension.
*/
const plugin: JupyterFrontEndPlugin<void> = {
id: "@jupyterlab-examples/server-extension:plugin",
description:
"A minimal JupyterLab extension with backend and frontend parts.",
id: "jupyterlab-optuna:plugin",
description: "A JupyterLab extension for Optuna",
autoStart: true,
optional: [ILauncher],
requires: [ICommandPalette],
Expand All @@ -32,9 +31,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
palette: ICommandPalette,
launcher: ILauncher | null
) => {
console.log(
"JupyterLab extension @jupyterlab-examples/server-extension is activated!"
)
console.log("JupyterLab extension jupyterlab-optuna is activated!")
console.log("ICommandPalette:", palette)

const { commands, shell } = app
Expand All @@ -60,6 +57,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
command: CommandIDs.ui,
})
}
palette.addItem({ command: CommandIDs.ui, category: "Optuna" })
},
}

Expand Down

0 comments on commit 2882d9f

Please sign in to comment.