Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Running Notebooks inside a notebook:

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91226] Re: Running Notebooks inside a notebook:
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Sun, 10 Aug 2008 01:52:53 -0400 (EDT)
  • References: <g7k0eo$ics$1@smc.vnet.net>

Gopinath Venkatesan wrote:
> Hello David
> 
> Thank you for the suggestion. It worked good for me.
> 
> I see that we don't even need another notebook to repeat the desired contents. Only thing I don't like/understand is if we have Plot[] or other commands without semicolon(;) in the end, there are possibilities that the code stops working. For example, say I have a "error-free" definition, mass=10; in the Inner.nb in the second line, and the first line is some command that does not have a ; in the end, then it gives error saying Tag times mass is protected, as if I am assigning 3 mass = 21. So I had to remove all the Plot[] commands and other commands that don't have ;.
> 
> Thank you again,
> 
> Regards,
> Gopinath
> 
I suspect that what you need to know is that you can have a Plot command 
embedded in other code, but you need to use Print in order to obtain its 
output:

some statements;
Print[Plot[Sin[x],{x,0,10}]];
some more statements;


David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Simulating a Mouseover event in EventHandler
  • Next by Date: Re: memory question
  • Previous by thread: Re: Running Notebooks inside a notebook:
  • Next by thread: Derivative of Dot[]