(If this is entirely trivial, although I couldn't find an answer as much as I searched the archives, I will delete the question.)

How could I add a keyboard shortcut to evaluate the entire notebook instead of going to Evaluation -> Evaluate Notebook again and again ?

  • 3
    $\begingroup$ I would post in answer, but I haven't tried it. Check out [customizing Mathematica shortcuts] (stackoverflow.com/questions/4209405/…) with the token EvaluateNotebook similar to the EvaluatorQuit demonstrated $\endgroup$ Sep 29, 2013 at 14:48
  • $\begingroup$ Thanks; I added it (EvaluateNotebook), but it enters an infinite loop. Also there are a couple of links in answer, that are no longer available. $\endgroup$
    – stathisk
    Sep 29, 2013 at 15:02
  • 5
    $\begingroup$ How about Command-A followed by enter? $\endgroup$
    – bill s
    Sep 30, 2013 at 3:21

4 Answers 4


Personally I would use what bill_s suggested, Ctrl+A followed by Shift+Enter.

But if you want to have one shortcut you can use what Timothy linked. Just add this line to the KeyEventTranslations.tr file:

 Item[KeyEvent["h", Modifiers -> {Control}], 
      FrontEndExecute[FrontEndToken[SelectedNotebook[ ], "EvaluateNotebook"]]]  

it works for me.

Your infinite loop probably showed while testing on the notebook. Well, if you want to evaluate notebook and the last line is


then it will definitelly result in such loop.

  • $\begingroup$ does this shortcut still work? I can't get Mathematica 10 to recognize it (it just makes a ding sound when I try to execute it) $\endgroup$
    – Hanmyo
    Feb 14, 2017 at 3:16
  • $\begingroup$ @Hanmyo ctrl+h? Have you edited KeyEventTranslations.tr? I will try later but I think it should work. $\endgroup$
    – Kuba
    Feb 14, 2017 at 6:29
  • $\begingroup$ Yep, I put the line in that file and it didn't work for me. I think maybe it recognized that the command was in the file but maybe the command didn't work? I'm just guessing here, but it does make a ding noise when I hit ctrl+h, it just doesn't evaluate the notebook or do anything else. $\endgroup$
    – Hanmyo
    Feb 16, 2017 at 1:47

For OSX you can do the following.

  1. Select Mathematica.

  2. Click on "Mathematica" menu then "Services -> Services Preferences..."

  3. Select "Shortcuts" tab.

  4. In the left side select "App Shortcuts".

  5. Click the + button.

  6. Fill out the following.

    enter image description here

  7. Click add after you have set your short cut key and you are good to go.

  • $\begingroup$ Wow, that is really easy, thanks! $\endgroup$
    – lambdas
    Oct 15, 2016 at 15:36
  • $\begingroup$ How may I use Simon O'Doherty method for commands that are nested in a menu, e.g., Evaluation -> Quit Kernel -> Local? Adding 'Local' or 'Quit Kernel -> Local' in 'Menu Title' does not work. $\endgroup$
    – Edward
    Jan 11, 2018 at 11:05
  • $\begingroup$ @James Please do not use answers as a followup questions. If your comment won't get answered you can ask a separate question. $\endgroup$
    – Kuba
    Jan 11, 2018 at 11:11

I use Alt+v+o, or Alt, then v, then o (they don't have to be entered at the same time, just in succession). That's the same as Evaluation > Evaluate Notebook

  • 1
    $\begingroup$ +1 note the "evaluate notebook" menu item was curiously missing in some versions, glad to see it back. $\endgroup$
    – george2079
    May 29, 2014 at 15:46
  • $\begingroup$ In what versions does this work? It seems that here it doesn't (Mac OSX, Mathematica 9.0.1). Thanks! $\endgroup$
    – stathisk
    May 29, 2014 at 17:05
  • $\begingroup$ I use Windows 7 and MMA 9. Have you tried it with the Command/Control/Option key? Also, you don't have to hit all the keys at once; I usually hit "Alt" lift finger "v" lift finger "o". $\endgroup$
    – seismatica
    May 30, 2014 at 2:49
  • $\begingroup$ (+1) How did you know this? I couldn't find it in the documentation! :) $\endgroup$ Mar 1, 2016 at 21:51
  • $\begingroup$ works for me on ubuntu 14.04 $\endgroup$
    – desmond13
    Feb 15, 2017 at 14:37
  1. Goto C:\.....\Mathematica\System Files\Front End\TextResources\Windows
  2. Open the file: KeyEventTranslations.tr
  3. Locate line 11 of this file:

    Item[KeyEvent["KeypadEnter", Modifiers -> {Shift}], "EvaluateNextCell"],
  4. Change this line to:

    Item[KeyEvent["KeypadEnter", Modifiers -> {Shift}], "EvaluateNoteBook"],
  5. Save and restart Mathematica.

After making this change pressing the key combination Shift and KeypadEnter will cause Mathematica to evaluate the notebook.

  • $\begingroup$ The last suggestion works (user65421) perfectly except the 'b' in "EvaluateNoteBook" must be lowercase--at least in version 13. $\endgroup$
    – Mike Pugh
    Aug 19, 2022 at 19:33

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.