How can I create the "Run all code" button (at the top right corner) in Mathematica notebook?

The current method I have is to save the .nb file into .wls (i.e. Wolfram Language Script), and then open the .wls file (which have a "Run all code" button at the top right corner) and save it back to .nb file. But this method seems silly and clumsy and I wonder if there's a better method to do it.

  • 1
    $\begingroup$ You can also go into the "Evaluation" menu and click on "Evaluate Notebook"... $\endgroup$ Apr 23, 2018 at 22:26

1 Answer 1


Here is some code I wrote to make a palette that I use a lot. Maybe the it will work you, or at least give you ideas on how to do it.

  Framed @ Column[{
     Button["Evaluate Cells", 
       Appearance -> "Palette", ImageSize -> 140],
     Button["Evaluate Notebook", 
       Appearance -> "Palette", ImageSize -> 140],
     Button["Global Clear", Clear["Global`*"],
       Appearance -> "Palette", ImageSize -> 140]}],
  WindowTitle -> "Evaluation"];


If you need instructions on how to install the palette, look at this answer.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.