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

Shortcut to run all selected cells #556

Closed
mossr opened this issue Oct 10, 2020 · 5 comments
Closed

Shortcut to run all selected cells #556

mossr opened this issue Oct 10, 2020 · 5 comments
Labels
frontend Concerning the HTML editor good first issue Good for newcomers

Comments

@mossr
Copy link
Contributor

mossr commented Oct 10, 2020

Related to #83, it would be nice to have a button or shortcut to re-run all cells.

An example use case would be when changing a Plots.jl theme, it wouldn't trigger any cells with plots, so I'd have to manually mouse down to each cell and run them.

Thought? Sort of like Jupyter's "Run all cells", "Run all below", etc.

(also, thank you for dealing with all of the bugs I encounter and my many feature requests 🤗)

@fonsp
Copy link
Owner

fonsp commented Oct 10, 2020

There's already a way to select all cells, we just need to add the ability to run every selected cell :)

@mossr
Copy link
Contributor Author

mossr commented Oct 12, 2020

Somewhat related: is there a programmatic way to run "submit all changes" from another cell?

Like calling update_save_run! but in a Pluto cell.

@lungben
Copy link
Contributor

lungben commented Oct 13, 2020

I second that this would be very helpful.
I sometimes end up in a notebook state from which it cannot recover automatically (usually when changing Pkg and PyCall related stuff), then I have to shut down the kernel and re-open the notebook again.

It would be great to have the equivalent of Jupyter's "Restart Kernel and Run all Cells" in Pluto, which should give the same results as closing and re-opening the notebook.

@fonsp fonsp changed the title Feature request: Re-run all cells Feature request: Run all selected cells Oct 14, 2020
@fonsp fonsp added frontend Concerning the HTML editor good first issue Good for newcomers labels Oct 14, 2020
@fonsp
Copy link
Owner

fonsp commented Oct 14, 2020

(using the Shift+Enter shortcut)

@fonsp fonsp changed the title Feature request: Run all selected cells Shortcut to run all selected cells Oct 14, 2020
@fonsp
Copy link
Owner

fonsp commented Oct 18, 2020

To clarify:

You can select all cells either using the selection box or using Ctrl+A when not focused on a cell:

select edit multiple

You then press the play button (▶) on any of the selected cells, or Shift+Enter, and they will all run in a single reactive batch, which is what you want.

(I don't want to add a dedicated button for this because it's uncharming.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Concerning the HTML editor good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants