Hiya lads
Trying to write my first jlab extension, I’m having trouble dealing with the palette
With the code below, I have been able to write a command, and to bind it to a keystroke
But then, when invoking the palette with shift-command-C, I was expecting to find my command when typing e.g. hide-input
, but to avail, neither with any other keyword that I could think of
What am I doing wrong ?
thanks for your help
const plugin: JupyterFrontEndPlugin<void> = {
// snip
activate: (app: JupyterFrontEnd, palette: ICommandPalette, notebookTracker: INotebookTracker) => {
const command: string = "set-hide-input"
app.commands.addCommand(
command, {
// snip
})
app.commands.addKeyBinding({
command: command,
// snip
})
palette.addItem({ command, category: 'Tuto' })
// snip