Re: questions about Notebooks
- To: mathgroup at smc.vnet.net
- Subject: [mg12946] Re: questions about Notebooks
- From: paulh (P.J. Hinton)
- Date: Sun, 28 Jun 1998 02:51:40 -0400
- Organization: Wolfram Research, Inc.
- References: <email@example.com>
- Sender: owner-wri-mathgroup at wolfram.com
In article <6mqd9a$3cq at smc.vnet.net>, slater at itp.ucsb.edu (Paul Slater) writes: |> I know that if I run a MATHEMATICA job using the command |> |> nohup math |> |> then, if I log out, the job should keep running. |> |> Now, is it possible to log out when a Notebook program is in operation, |> and still have the program continue to compute. |> |> I'm asking this because I use a public terminal, and would prefer not to |> tie it up with a long computation (and I'm not aware of any way of |> running a Notebook under the "nohup" command). |> |> Also, if I have two Notebook programs stored separately, can I |> concatenate them in some manner, so that one will automatically run |> after the other is complete? You may want to consider doing the following: 1) Select the cells in your notebook that contain expressions that you want to evaluate. 2) Click on the front end menu command sequence Cell -> Cell Properties -> Initialization Cell 3) Use the front end menu command File -> Save As Special -> Package This will save the notebook with only the Initialization Cells uncommented out. 4) Paste the following Cell expression in a notebook and click "Yes" on the dialog box that results. Cell[TextData[ButtonBox["Learn more about batch mode", ButtonData:>"Using Kernel Directly (X)", Active->True, ButtonStyle->"GettingStartedLink"]], "Text"] This will create a hyperlink that will give you instructions for running Mathematica in batch mode. 5) If you would like the output from the batch session to be logged as a notebook as well, you may want to consider using Roman Maeder's NotebookLog.m package that is discussed in his book _Programming in Mathematica_. The package comes on the Mathematica installation in directory $TopDirectory/AddOns/ExtraPackages/ProgrammingInMathematica -- P.J. Hinton Mathematica Programming Group paulh at wolfram.com Wolfram Research, Inc. http://www.wolfram.com/~paulh/ Disclaimer: Opinions expressed herein are those of the author alone.