Skip to content

Conversation

nakul-py
Copy link
Contributor

@nakul-py nakul-py commented Jul 23, 2025

Adding + Chat button into the Jupyterlite Ai chat with the help of creating new header for button.

};

const widget = ReactWidget.create(<ChatSidebarWithHeader />);
widget.title.icon = jupyternautLiteIcon;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use this Icon here because creating chatsidebar with header changes the Jupyterlite icon. So, I use this already created JupyterLite AI chat icon after successfully creating a chatsidebar with a header.

@jtpio and @brichet you have any other way to get back the old icon after rendering chatsidebar? Please share the idea.

@jtpio jtpio mentioned this pull request Aug 4, 2025
@brichet
Copy link
Collaborator

brichet commented Aug 4, 2025

Thanks @nakul-py for working into this.
If I understand correctly this PR, there would be one chat in the side panel, and the other ones would be created in the main area ?

I wonder if we could find a way to reuse the multi-chats panel from jupyterlab-chat.
This panel could probably be moved to the @jupyter/chat package and be reused in jupyterlab-chat and @jupyterlite/ai.

@nakul-py
Copy link
Contributor Author

nakul-py commented Aug 4, 2025

@brichet will you reference the main-chats panel from https://github.com/jupyterlab/jupyter-chat and @jtpio your suggestions will helps too.

@brichet
Copy link
Collaborator

brichet commented Aug 4, 2025

@brichet will you reference the main-chats panel from https://github.com/jupyterlab/jupyter-chat and @jtpio your suggestions will helps too.

To clarify, the repository https://github.com/jupyterlab/jupyter-chat contains several packages:

  • @jupyter/chat that provides generic widgets and model to add a chat (this is the package used in jupyterlite-ai)
  • jupyterlab-chat that depends on @jupyter/chat, and provides widgets and model for chat based on collaborative documents (that cannot work in jupyterlite at the moment)
  • jupyterlab-chat-extension that provides the plugins for a chat extension based on collaborative documents.

The multi-chats panel is currently defined in jupyterlab-chat, and can (probably) only be used with a chat based on collaborative documents.

But I wonder if we could make that multi-chats panel generic enough to be defined in @jupyter/chat, and to not depend on collaborative documents.

This change should be done in jupyter-chat itself, to then be used in jupyterlite-ai. That way we wouln't duplicate the multi-chats implementation.

@nakul-py
Copy link
Contributor Author

nakul-py commented Aug 5, 2025

@brichet would you have any plan on how to make multi-chats panel generic

@brichet
Copy link
Collaborator

brichet commented Aug 5, 2025

I opened jupyterlab/jupyter-chat#261 to track it in jupyter-chat.

@nakul-py
Copy link
Contributor Author

nakul-py commented Sep 23, 2025

Hey @brichet Is MultiChatPanel is available globally in @jupyter/chat after release so we can use it.

@nakul-py nakul-py changed the title Adding New chat button [WIP]: Adding New chat button Sep 23, 2025
@nakul-py nakul-py changed the title [WIP]: Adding New chat button WIP: Adding New chat button Sep 23, 2025
@nakul-py nakul-py marked this pull request as draft September 23, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to create new chats and move them to the main area
2 participants