Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Executing external notebook

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92764] Re: Executing external notebook
  • From: Peter Pein <petsie at dordos.net>
  • Date: Sun, 12 Oct 2008 04:35:17 -0400 (EDT)
  • References: <gcq09i$c30$1@smc.vnet.net>

change all input cells in common.nb to initialisation cells, save common.nb
and chose in the appearing box to create an autosave package. this will
generate a file common.m in the same folder as the common.nb is located in.
Then you can use <<"/path/to/common" in your main[1-5].nb (of course you have
to replace the "/path/to" part by the actual path to your common file).

Peter

pdingle at gmail.com schrieb:
> I have a really trivial question, but nevertheless am stuck.
> 
> Within a notebook file, how do I execute an external notebook and keep
> all the results in memory?
> 
> For example I have 5 files,
> main1.nb
> main2.nb
> main3.nb
> main4.nb
> main5.nb
> 
> each of which must call
> common.nb
> 
> which contains code that is common to all 5 main files.
> 
> It seems like this should be easy to do but I cannot find an
> appropriate command (Get seems like it is intended for this purpose,
> but perhaps I am not using it correctly).
> 


  • Prev by Date: Re: Export as PDF without " for strings
  • Next by Date: Bug in Manipulate with Trigger control?
  • Previous by thread: Executing external notebook
  • Next by thread: Easiest Mathematica algorhitm needed