An options object for creating a JupyterLab menu.

interface IOptions {
    commands: CommandRegistry;
    includeSeparators?: boolean;
    rank?: number;
    renderer?: IRenderer;


  • IOptions
    • IOptions


commands: CommandRegistry

The command registry for use with the menu.

includeSeparators?: boolean

Whether to include separators between the groups that are added to the menu.

Default: true

rank?: number

Menu rank

renderer?: IRenderer

A custom renderer for use with the menu.

The default is a shared renderer instance.