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). >
- Follow-Ups:
- Re: Easiest Mathematica algorhitm needed
- From: "Yuri Kandrashkin" <spinalgebra@gmail.com>
- RE: Re: Executing external notebook
- From: "Tugrul Temel" <temelt@xs4all.nl>
- Easiest Mathematica algorhitm needed
- From: Artur <grafix@csl.pl>
- Re: Easiest Mathematica algorhitm needed