mathematica start front end and eval notebook from command line

后端 未结 5 2166
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-30 07:21

Is there a way to start up a mathematica front end (GUI) from a (Windows) command prompt and have it eval a notebook without further user action?

even though mathe

5条回答
  •  甜味超标
    2020-12-30 08:24

    Aha...!!

    Needs["JLink`"]; 
    $FrontEndLaunchCommand="C:\\Program Files\\Wolfram Research\\Mathematica\\6.0\\Mathematica.exe";
    ConnectToFrontEnd[];
    UseFrontEnd[Module[{}, ...
    

    follow up..for completeness --- the above $FrontEndLaunchCommand causes the GUI to come up so you can observe the evaluation (What I wanted). The default is to run a front end in a background server mode, so you have acess to front end functions but cant see it run.

提交回复
热议问题