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


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

Re: Evaluation of a whole notebook from another one

From "djmpark" <djmpark@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Evaluation of a whole notebook from another one
Date 2012-08-05 01:54 +0000
Message-ID <jvkjor$5ug$1@smc.vnet.net> (permalink)
References <25065105.5830.1344074525452.JavaMail.root@m06>
Organization Time-Warner Telecom

Show all headers | View raw


Why don't you make Source.nb a package notebook? Either make it directly a
Source.m notebook or make it automatically generate a Source.m notebook by
changing Notebook Options, FileOptions, AutoGeneratedPackage to Automatic in
the Option Inspector. You could put the notebook in a folder
MySourcePackages in your personal Applications folder
($UserBaseDirectory/Applications) and then read in the package by
<<MySourcePackages`Source`.
 

David Park
djmpark@comcast.net 
http://home.comcast.net/~djmpark/index.html 



From: Dr. Robert Kragler [mailto:kragler@hs-weingarten.de] 


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


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


Thread

Re: Evaluation of a whole notebook from another one "djmpark" <djmpark@comcast.net> - 2012-08-05 01:54 +0000

csiph-web