MathGroup Archive 2009

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

Search the Archive

Re: update notebook calculations on startup?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100144] Re: update notebook calculations on startup?
  • From: Helen Read <hpr at together.net>
  • Date: Tue, 26 May 2009 05:09:55 -0400 (EDT)
  • References: <gvdr7p$73d$1@smc.vnet.net>
  • Reply-to: HPR <read at math.uvm.edu>

donkey wrote:
> I'm using mathematica to do some calculations on financial data and want to know if there is a way to make the calculations execute automatically when I notebook is open.
>
> For example I have a notebook with the following code:
> stock1 = "ASX:RHC"
>
> stock2 = "ASX:PRY"
>
> currentDate = {2009, 5, 21}
>
> correlationOffset = -150
>
> DateListPlot[{FinancialData[stock1, "Jan.1,2009"],
> =C2  FinancialData[stock2, "Jan. 1,2009"]}, Joined -> True,
> =C2 PlotLabel -> "Blue -> " + stock1 +=C2  "Red -> " + stock2,
> =C2 FrameLabel -> {"Date", "Closing Price"}]
>
> I would like it to update the graph automatically rather than me having to go through and shift+enter on each of the lines.

Make them initialization cells. Select the cells in question, then click 
on Cell, Cell Properties, Initialization Cell.


--
Helen Read
University of Vermont


  • Prev by Date: Re: What happened to StandardForm?
  • Next by Date: Re: NIntegrate & Integrate
  • Previous by thread: update notebook calculations on startup?
  • Next by thread: Re: update notebook calculations on startup?