MathGroup Archive 2008

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

Search the Archive

How to run/call a Mathematica Notebook from another Notebook?

Hi, dear friends!

I want to use b.nb to run a.nb.

in a.nb, the codes are:

Export["1.png", Plot[BesselJ[0, x^2], {x, 0, 5}], "PNG"]

in b.nb, I used the Jean-Marc codes (see

nb= NotebookOpen["a.nb"];
SelectionMove[ nb, All, Notebook]

I ran the a.nb directly, and I got the exported 1.png.

Then I ran the b.nb. I saw the a.nb had been run and then closed, but
I can not get the 1.png.

Any ideas, thanks!

  • Prev by Date: Re: Speeding up a list construction
  • Next by Date: initialize cells
  • Previous by thread: Re: Is it possible to reverse "Color Schames" function ?
  • Next by thread: initialize cells