3
$\begingroup$

I am trying to start new notebook from a command line mode with command UsingFrontEnd@CreateDocument[] The notebook is created but it stays in minimized mode at the taskbar. How to start notebook properly from a command line so I can interact with it?

Edit

I am using Ubuntu 15.04 and I am starting the mathematica kernel in gnome-terminal with command math.

$\endgroup$
  • $\begingroup$ The question is not clear. What OS are you running? When you say command line, what application is actually prompting and processing your commands? A terminal emulator? A Mathematica kernel? $\endgroup$ – m_goldberg Dec 31 '15 at 22:14
3
$\begingroup$

Using a package file

open.m

Needs["JLink`"];
$FrontEndLaunchCommand = FileNameJoin[{$InstallationDirectory, "Mathematica.exe"}];
UseFrontEnd[CreateDocument[]];

from a command line (Windows)

cd \Program Files\Wolfram Research\Mathematica\10.4
start MathKernel -noicon -initfile C:\myPath\open.m
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.