Skip to content

Better integrate with the JupyterLab toolbar registry machinery #266

@jtpio

Description

@jtpio

Problem

Currently, the Jupyter chat toolbar (next to the input text area) feels a bit different compared to every other toolbar in JupyterLab.

One of the differences is that the toolbar is directly next to the input chat area, which means that when the toolbar has many items, the chat area becomes cramped and the UX is degraded.

Another difference is that the chat toolbar is not configurable via the setting system, unlike the other toolbars, like the Notebook toolbar, or even the top area.

It would be great to check if we could integrate better with the base JupyterLab toolbar registry and factory mechanism? https://jupyterlab.readthedocs.io/en/latest/user/interface_customization.html#toolbars

At the same time, we could also add the ability to move the toolbar to the bottom to give the chat typing area a bit more space.

Proposed Solution

Use the IToolbarWidgetRegistry to configure the chat toolbar.

And also take the opportunity to put the toolbar below the text area:

Image

Additional context

The jupyterlab-chat package makes use of the toolbar registry, but only for the toolbar at the top of the widget. So maybe we will need to move that logic to the main Jupyter chat package so it becomes available more generally.

Image

And in JupyterLab, many toolbars use the toolbar registry, such as the browser, notebook, and cell toolbars:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions