Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code toolbar #67

Merged
merged 13 commits into from
Aug 2, 2024
Merged

Code toolbar #67

merged 13 commits into from
Aug 2, 2024

Conversation

brichet
Copy link
Collaborator

@brichet brichet commented Jul 17, 2024

This PR a refactoring of jupyterlab/jupyter-ai#789.

It adds a toolbar to the code part of the messages, to copy the code in the active cell of the current notebook, or the cell above or below.
The buttons performing action on the notebook (replace cell content, add cell) are enabled only if the active Notebook is visible and has a cell active.

Peek 2024-07-23 11-08

This toolbar can be included by an extension using the chat package (for example the collaborative chat in this PR), by providing an activeCellManager to the chat model.

Related to jupyterlab/jupyter-ai#862

Copy link
Contributor

Binder 👈 Launch a Binder on branch brichet/jupyter-chat/code-toolbar

@brichet brichet marked this pull request as ready for review July 18, 2024 14:22
@brichet
Copy link
Collaborator Author

brichet commented Jul 23, 2024

Bumping the CI

@brichet brichet closed this Jul 23, 2024
@brichet brichet reopened this Jul 23, 2024
@brichet brichet merged commit 08b371d into jupyterlab:main Aug 2, 2024
9 checks passed
@brichet brichet deleted the code-toolbar branch August 2, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant