Localizing Variables in Notebooks
- Video Lesson
- 9 min
- Download Lesson Notebook
- Intermediate
Estimated Time: 9 min
Course Level: Intermediate
Summary
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