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


Groups > comp.soft-sys.math.mathematica > #8316 > unrolled thread

Initialization Cells Not Evaluated When Notebook Saved to CDF

Started byGregory Lypny <gregory.lypny@videotron.ca>
First post2012-02-03 07:13 +0000
Last post2012-02-04 11:27 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Initialization Cells Not Evaluated When Notebook Saved to CDF Gregory Lypny <gregory.lypny@videotron.ca> - 2012-02-03 07:13 +0000
    Re: Initialization Cells Not Evaluated When Notebook Saved to CDF "Nasser M. Abbasi" <nma@12000.org> - 2012-02-04 11:27 +0000

#8316 — Initialization Cells Not Evaluated When Notebook Saved to CDF

FromGregory Lypny <gregory.lypny@videotron.ca>
Date2012-02-03 07:13 +0000
SubjectInitialization Cells Not Evaluated When Notebook Saved to CDF
Message-ID<jgg1dt$bpd$1@smc.vnet.net>
Hello everyone,

I've saved a notebook to CDF.  It has a number of initialization 
cells.  The functions and values of the variables that have been 
initialized are then used or displayed in other cells that make use of 
Dynamic[].  The notebook works fine when opened in Mathematica but in 
the CDF Player, most of the cells with results display errors because 
functions and variables have not been initialized.  What am I doing 
wrong?

Gregory

[toc] | [next] | [standalone]


#8322

From"Nasser M. Abbasi" <nma@12000.org>
Date2012-02-04 11:27 +0000
Message-ID<jgj4mo$mrq$1@smc.vnet.net>
In reply to#8316
On 2/3/2012 1:13 AM, Gregory Lypny wrote:
> Hello everyone,
>
> I've saved a notebook to CDF.  It has a number of initialization
> cells.  The functions and values of the variables that have been
> initialized are then used or displayed in other cells that make use of
> Dynamic[].  The notebook works fine when opened in Mathematica but in
> the CDF Player, most of the cells with results display errors because
> functions and variables have not been initialized.  What am I doing
> wrong?
>
> Gregory
>

When I do something like this, I add

    SaveDefinitions->True

to the Dynamic (I use Manipulate, so I add that to the end of the
Manipulate).  see if this will fix it for you.

Other than that, I had no problems really with using initialization
cells in a demonstration notebook and then running the demo inside
the CDF plugin in a browser.

--Nasser

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web