MathGroup Archive 2011

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

Search the Archive

Is a conditional evaluation of sections of a notebook possible?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116868] Is a conditional evaluation of sections of a notebook possible?
  • From: "slawek" <slawek at host.pl>
  • Date: Thu, 3 Mar 2011 05:55:47 -0500 (EST)

I have got a .nb file like

  Section 1a  --- algebraic/symbolic/etc (fast execution, seconds)
  Section 1b  --- numerical/plots (slow, hours)
  Section 2a  --- symbolic (fast, seconds)
  Section 2b  --- ...

I would like to arrange the nootebook like

Section1a

IF (evaluateAllSections == True) THEN
  Section1b
ENDIF

Section2a
...

Is it possible to conditionally restrict evaluation of whole sections of a 
notebook?

I would not like reorganize .nb into

  Section1a
  Section2a
  ...
  Section1b
  Section2b

because this workaround destroy the flow of ideas in the text (and force to 
jump across whole .nb to eg. check eq. in Section1a with  code in 
Section2b.)

TIA
slawek 



  • Prev by Date: Re: Compiling Pythonika on MacOS
  • Next by Date: Re: Bug in definite integral over Gamma function?
  • Previous by thread: Re: TransformedDistribution
  • Next by thread: Re: Is a conditional evaluation of sections of a notebook possible?