Wolfram Computation Meets Knowledge

Video Class

Localizing Variables in Notebooks

Download Presentation Notebook Level: Intermediate Video: 9 min


Global variables can create conflicts with future calculations using the same variable names, so it is often helpful to limit variables to run once or localize them. This video will show you several ways to localize variables and prevent global variables from interfering with past or future code.

Featured Products & Technologies: Mathematica, Wolfram Language, Wolfram Notebooks

You'll Learn To

  • Differentiate between global and local variables
  • Use the DynamicModule and Module functions
  • Understand the Context function
  • Use the Option Inspector to make all new variables local to a given notebook instead of global
Ask questions or start a discussion about related topics on Wolfram Community.