Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Notebook & Interface Customization > Evaluation Options in Notebooks > CellProlog >
Mathematica > Notebooks and Documents > Notebook Formatting & Styling > Stylesheets > Evaluation Options in Notebooks > CellProlog >

CellProlog

CellProlog
is an option to Cell that gives an expression to evaluate before each ordinary evaluation of the contents of the cell.
  • CellProlog:>expr evaluates expr for every ordinary kernel evaluation done in the cell, as initiated for example by Shift+Enter or by Evaluate in Place.
  • CellProlog is often set at a style or notebook level, rather than for individual cells.
Rules for temporarily setting $Post:
Rules for setting up local package contexts for a cell:
Rules for temporarily setting $Post:
In[1]:=
Click for copyable input
 
Rules for setting up local package contexts for a cell:
In[1]:=
Click for copyable input
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF