UI: add check buttons that allow users to select multiple cells then … - #8000
Open
butterman28 wants to merge 1 commit into
Open
UI: add check buttons that allow users to select multiple cells then …#8000butterman28 wants to merge 1 commit into
butterman28 wants to merge 1 commit into
Conversation
…a floating action button that has copy selected so you can copy the selected cells for llm context
Contributor
butterman28
marked this pull request as draft
July 27, 2026 11:24
butterman28
marked this pull request as ready for review
July 27, 2026 11:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…a floating action button that has copy selected so you can copy the selected cells for llm context
feat: add LLM cell selector with floating copy button
References
Addresses the common workflow pain point of extracting specific cell contexts to feed into Large Language Models (LLMs), especially in environments like Kaggle where copying multiple disjointed cells is cumbersome.
This is a new additive feature. Unlike existing "Copy" commands that copy the entire notebook or a single active cell, this allows granular, multi-cell selection across the notebook with a dedicated, unobtrusive UI.
Code changes
packages/notebook-extension/src/index.ts: Added a newcellSelectorForLLMplugin.Mapof selected cell IDs scoped to the specificNotebookPanelto prevent memory leaks and cross-tab confusion.cells.changedto gracefully re-inject checkboxes if a cell's type changes or it is re-rendered.document.bodythat aggregates the source code of all selected cells, formats them with clear headers (e.g.,--- CODE CELL ---), and writes them to the system clipboard using thenavigator.clipboardAPI.packages/notebook-extension/style/base.css: Added styling for:.jp-LLMCellSelector: Styles the checkbox to match Jupyter's brand colors..jp-mod-selected-for-llm: Adds a subtle background color and left border to visually indicate a selected cell..jp-LLMFloatingCopyButton: Styles the floating pill-shaped button with hover effects, shadows, and a highz-indexto ensure it remains accessible above all other UI elements.User-facing changes
In [ ]:prompt on every cell.(💡 Tip: Drag and drop a short screen recording or screenshot here showing the checkboxes and floating button in action!)
Backwards-incompatible changes
None. This is a purely additive, opt-in UI feature that does not modify any existing public APIs, default behaviors, or settings.
Screencast.From.2026-07-27.12-10-11.mp4