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

Add code buttons #16

Open
bollwyvl opened this issue Oct 19, 2022 · 1 comment
Open

Add code buttons #16

bollwyvl opened this issue Oct 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@bollwyvl
Copy link
Contributor

bollwyvl commented Oct 19, 2022

Elevator Pitch

  • Offer a way to
    • collapse a code cell into a button with the cell's name metadata as a label, which runs the code cell
    • optionally offer a split button which would reveal the code editor

Motivation

Some code cells might be distracting, when the output is really what's wanted.

Design Ideas

As the name field isn't promoted anywhere, this would need to be in:

  • a property in the jupyterlab-deck metadata namespace
  • a new claimed tag

Either way, as the tag ui isn't very good for discovery of additional tags at present, this would be separate activity anyway.

┌─────────────────────┬─────┬─┐ 
│ ▶ frob the bozz     │ ... │▿│
└─────────────────────┴─────┴─┘

Running the main button would change color and icon:

┌─────────────────────┬─────┬─┐ 
│ ◔ frob the bozz     │ ... │▿│
└─────────────────────┴─────┴─┘

And some more tags would control whether:

  • output is shown/hidden/streamed by line

Ideally, successive, buttonized cells would stack up horizontally.

@bollwyvl bollwyvl added the enhancement New feature or request label Oct 19, 2022
@bollwyvl
Copy link
Contributor Author

This might already be almost possible with styles, though there's probably no way to get the cell name out...

@bollwyvl bollwyvl added this to the 0.2.0 milestone Dec 22, 2022
@bollwyvl bollwyvl removed this from the 0.2.0 milestone Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant