MathGroup Archive 2004

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

Search the Archive

Re: Running a notebook from within another

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46616] Re: Running a notebook from within another
  • From: Marcus Stollsteimer <marcus314 at yahoo.com>
  • Date: Wed, 25 Feb 2004 13:07:09 -0500 (EST)
  • Organization: Comp.Center (RUS), U of Stuttgart, FRG
  • References: <c1h0u1$9so$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

mark all cells in header.nb as 'Initialization Cell',
and save the file as header.m (Save as special -> Package Format).
Then in the main file, you can import your definitions with

<<header`

(make sure the file is in the search path).

Regards,
Marcus

JM wrote:
> I have many notebooks that all start with the same 10 or so lines.
> They set up some variables that I use. Is there anyway I could stick
> those lines in a separate notebook e.g. header.nb and call it in my
> main notebooks.

-- 
If man were immortal, do you realize what his meat bills would be?
    -- W. Allen


  • Prev by Date: Re: ListPlot output
  • Next by Date: Re: ListPlot output
  • Previous by thread: Re: Saving Kernel Status
  • Next by thread: Re: Running a notebook from within another