I like to use Mathematica 8.0 from the commandline, then I just have to SSH in, no matter where I am, and go. I also like to do this without forwarding X, because that is slow and lags on my connection.
I have a wrapper script that adds keyword completion and readline functionality, and will, iff i have forwarded X start a java program to display the graphs.
However, this issue occurs whether or not I use my wrapper script.
I would like to import some code from LaTeX,
so I do:
In[7]:= ToExpression["x=4-2", TeXForm]
which outputs:
Can't open display "localhost:12.0"
then hangs. I'm not sure why it wants to open the display in the first-place. What is going on?
If I use StandardForm this works fine:
In[6]:= ToExpression["x=4-2", StandardForm]
Out[6]= 2
It appears that people can't reproduce this. So some more details of my setup.
- I am SSHing using Putty from Windows to Debian Wheezy,
- then SSHing again into Debian Wheezy to ensure there is no Putty related issue (using
ssh -x(I have tried both with and without this step) - I execute
.../Wolfram/Mathematica/8.0/Executables/math ToExpression["x=4-2", TeXForm]and press enter- the above occurs
I have tried this on both a normal user and the root user.
Other than this mathematica appears to be working fine
I have edited the question to make it clear that it occurs, for me, even if i am just running the
– Frames Catherine White Aug 23 '14 at 07:34mathexecutable directly.x == 2. – celtschk Aug 23 '14 at 07:48TracePrint[ ToExpression["x=4-2", TeXForm], TraceInternal -> True ]. For me (in version 10) this also hung after crashingTeX.exe. I think it is possible that an external command (e.g. toTeX.exe) attempts an invalid action (display?) and this is what in turn hangs Mathematica. – Mr.Wizard Aug 23 '14 at 08:10stracereveals that it executes a front end at some time; I guess that's where the problem arises. – celtschk Aug 23 '14 at 17:30