Tag Info

Hot answers tagged

3

For your second question this would define a global aContxt so that it can be used in other notebooks (to be evaluated in the notebook with the private context): Global`aContext = $Context; Then you can define a new variable like this: SetDelayed @@ Join[Hold[varAnb], ToExpression[aContext <> "varA", InputForm, Hold]] the reason why this looks so ...


2

Interpolation is a built-in function located in the System` context, which is the same for all Notebooks independently of $Context, hence any changes of Options of this function will be global. But you can define your own function in the local context and set local options for it (see here for explanations): Clear[interpolation]; Options[interpolation] = ...



Only top voted, non community-wiki answers of a minimum length are eligible