Re: How to make variables local to a particular
- To: mathgroup at smc.vnet.net
- Subject: [mg101811] Re: [mg101784] How to make variables local to a particular
- From: "Scot T. Martin" <smartin at seas.harvard.edu>
- Date: Sat, 18 Jul 2009 04:48:59 -0400 (EDT)
- References: <200907170902.FAA24819@smc.vnet.net>
Others may say something better, but one approach would be to use Begin["context`"] and End[] within each notebook (this assumes that you do not try to flip between notebooks while within these statements). On Fri, 17 Jul 2009, dnquark wrote: > In the Evaluation menu I see the "Notebook's Kernel" and "Notebook's > default context" items. So I am wondering what is the preferred > method for making sure variables in a particular notebook stay private > to that notebook -- to assign the notebook to a different kernel or to > give it a different context?.. > > Also, whatever method I choose -- what command could I evaluate at the > first cell in the notebook to make sure that the context or the kernel > is changed before the rest of the notebook gets evaluated?.. > > Thanks! > >
- References:
- How to make variables local to a particular notebook?
- From: dnquark <dnquark@gmail.com>
- How to make variables local to a particular notebook?