MathGroup Archive 2011

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

Search the Archive

Re: Create a notebook with both input and output cells

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117255] Re: Create a notebook with both input and output cells
  • From: James <icorone at hotmail.com>
  • Date: Sun, 13 Mar 2011 05:25:04 -0500 (EST)

Hi.  I'm pretty sure you can create programatically, any type of notebook you want by including the appropriate Cell constructs in the CreateDocument call.  For example, you could just input into a notebook:

a = 3
b = 4
a^2 + b^2
Plot[Sin[x], {x, 0, \[Pi]}]

now, select the cell bracket on the right, then press Ctrl-Shift-E.  That gives you the cell expression for that input.  Now, just cut and paste it into a CreateDocument call and it will create a new document with that cell construct.


  • Prev by Date: Re: Wolfram, meet Stefan and Boltzmann
  • Next by Date: Re: Wolfram, meet Stefan and Boltzmann
  • Previous by thread: Create a notebook with both input and output cells
  • Next by thread: Re: Create a notebook with both input and output cells