Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11218

Re: Evaluation of a whole notebook from another one

From David Bailey <dave@removedbailey.co.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Evaluation of a whole notebook from another one
Date 2012-08-05 01:57 +0000
Message-ID <jvkjti$5v3$1@smc.vnet.net> (permalink)
References <jvitc7$32n$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


On 04/08/2012 11:26, Dr. Robert Kragler wrote:
> Hi,
>
> I have a simple question:
>
> There is a nb-file, say "Source.nb", which is called and should be evaluated as
> a whole (containing several procedures in a group of input cells) from another
> nb-file, say "Application.nb" which needs these procedures for further
> calculations.
>
> Within "Application.nb" the notebook "Source.nb" is correctly opened and pops up
> by NotebookOpen["filepath\Source.nb"]. It is, of course, possible to evaluate
> the cell group manually but the idea is to do this automatically and then return
> after evaluation to the calling nb-file "Application.nb" and close "Source.nb"
> using NotebookClose["filepath\Source.nb"].
>
> I miss a command such as NotebookEvaluate[...]. The commands EvaluationNotebook
> and SelectionEvaluate are not just doing what I want. Suggestions are appreciated.
>
> R. Kragler
>
>

It sounds like you need NotebookEvaluate, which is new at version 8.

David Bailey
http://www.dbaileyconsultancy.co.uk

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Evaluation of a whole notebook from another one "Dr. Robert Kragler" <kragler@hs-weingarten.de> - 2012-08-04 10:26 +0000
  Re: Evaluation of a whole notebook from another one awnl <awnl@gmx-topmail.de> - 2012-08-05 01:52 +0000
  Re: Evaluation of a whole notebook from another one David Bailey <dave@removedbailey.co.uk> - 2012-08-05 01:57 +0000

csiph-web