MathGroup Archive 2009

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

Search the Archive

Re: running mathematica notebooks without interface

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98839] Re: running mathematica notebooks without interface
  • From: dh <dh at metrohm.com>
  • Date: Mon, 20 Apr 2009 05:40:21 -0400 (EDT)
  • References: <gs9emj$mvd$1@smc.vnet.net> <gsbvv7$5ki$1@smc.vnet.net> <gseoma$e2t$1@smc.vnet.net>


Hi,

you could try the time honored method of writing to a file and polling:

Let the kernel-only code write a file with the data to plot (e.g. 

function or num. data). Then in another mathematica process with front 

end, poll for the file, read it, delete it, plot it and poll for the 

next occurence.

Daniel



ventutech at gmail.com wrote:

> Thanks!

> This is a very good idea and it works.

> However I would like to use graphics command such as contourPlot and

> others, and this seems not to be possible using a .m package run

> without a frontend?

> maybe the UsingFrontEnd command may help? But it's quite undocumented!

> It seems there is no way to run a .nb file without a front-end and

> save the output of the cells (including graphics) without having the

> actual frontend running...

> 

> Someone suggested me to use the Kernel remotely, which could be an idea!

> However I have some troubles addressing the remote kernel since it is

> located in a private network and I usually reach it by a double ssh

> session (ssh user1@gateway and then ssh user2@server)

> Any quick trick to tell mathematica to load a remote kernel using ssh

> tunnel?

> 

> Thank you in advance!

> Davide

> 

> On Apr 18, 9:37 am, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de>

> wrote:

>> Hi,

>>

>> take your notebook, mark all cells as initialization

>> and save it. The Frontend will as you to create a

>> package with you code. Say yes and you will have a

>> *.m file tha you can run with out the FrontEnd

>> from the kernel.

>>

>> Regards

>>    Jens

>>

>> ventut... at gmail.com wrote:

>>> Hi mathematica people!

>>> I have a notebook with some "heavy numerics" which is supposed to

>>> produce several plots and output files.

>>> I have been recently granted access to a server with two quad-cores

>>> where mathematica 7.0 is installed, however I can access it only

>>> through some tedious ssh sessions (which can't be really called

>>> tunneling) and of course I will have troubles automatizing the ssh-

>>> tunnel.

>>> Since I would like to run a parallelized version of my code on this

>>> new machine.. the question is:

>>> how can I run the notebook in the remote computer (using shell

>>> commands such as math < notebook.nb I don't know) as if I was running

>>> them on the local machine with the graphic interface? in such a way

>>> that it loads the notebook, it "evaluate cells" and it saves it so

>>> that I can download it and open it on another machine to watch the

>>> plots and everything?

>>> thank you very much in advance,

>>> Davide

> 

> 




  • Prev by Date: Re: Installation Problem with Mathematica 4.2 under Windows XP
  • Next by Date: Re: Scaling a part of a composite image
  • Previous by thread: Re: running mathematica notebooks without interface
  • Next by thread: Re: running mathematica notebooks without interface