Hot answers tagged

23

I had same problem on different Linux. I will show what I did. This is a known issue. see https://bugs.archlinux.org/task/57948 Problems with fontconfig and Mathematica. The following error is reported. /usr/local/Wolfram/Mathematica/11.2/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: symbol lookup error: /usr/lib/libfontconfig.so.1: ...


19

You need to daemonize your script: nohup math -script test.txt 0<&- &>/dev/null & Now this will run as a background process with no output captured. If your script does indeed produce output, just replace /dev/null with the filename. In order to daemonize something you need to disconnect all the automatically connected streams (stdin, ...


16

Under Linux the WSTP shared libraries that ship with Mathematica 10.0.1 for both 64 and 32 bit (libWSTP64i4.so and libWSTP32i4.so) appear to be broken. Link with the static versions libWSTP64i4.a or libWSTP32i4.a instead. The Windows and OS X versions are OK.


15

You can use GNU screen to make a sort of persistent terminal that allows you to resume work wherever you left off. Take a look at the many tutorials available. It's not completely clear from your question whether the better solution is this, or nohup (see Stefan's answer). Use nohup if your workflow is non-interactive: log in, start a batch job that ...


15

The "Wolfram Mathematica" directory is created automatically by the front-end and is located in $UserDocumentsDirectory. It is the default directory to save new documents in and also is on TrustedPath. The typical location for Linux systems is $HOME/Documents, however it may happen to fall back on $HOME depending on the Xdg user directories setting. This ...


14

I put together my own solution using VimScript and the Mathematica script interface. This works for Linux; for other OSs modify as necessary. First we create a file, say ~/bin/mathpipe.m which takes a Mathematica expression from standard input and prints the result to standard output. As far as I know, there's no built-in way to do this, please correct me ...


13

Just for kicks, I ran the "Benchmark Mathematica" test: Raspberry Pi model B Over-clocked CPU @ 800 MHz 64 of 256 MB RAM reserved for video 16 GB Class 10 SSD (going to need swap space with only 256 MB) Results: Benchmark Result: 0.01 Data Fitting 27.68 Digits of Pi 11.30 Discrete Fourier Transform 73.74 Eigenvalues of a Matrix 126.18 Elementary ...


13

As of version 11.3.0, support for 32-bit Linux has been discontinued. Only 64-bit Linux is supported, and the system requirements page has now been updated to reflect that http://www.wolfram.com/mathematica/system-requirements.html Additionally, I sent in a bug report since I believe the installer should have refused to run on a 32-bit system in the first ...


11

Here's an article I wrote about Mathematica on raspberry pi. It turns out that pi version of Mathematica is v10 which allows us to get a preview of what's coming soon to the desktop (currently at 9.0.1). Also, speed comparisons with desktop version and python. http://www.walkingrandomly.com/?p=5220


11

The circle is not cropped when used in a Subscript: Subscript["M", "⊙"] Thus, by using this answer you can easily do: str = "This is some text with a CircleDot: " <> ToString[Subscript["M", "⊙"], FormatType -> StandardForm] If you want some Style: Style[str, Red, 20]


10

Update For those working in STEM education, there will be a presentation on running Mathematica on the Raspberry Pi on September 17th during the Virtual Conference for Education, see here for more details: https://www.wolfram.com/events/virtual-conference/stem-education-2013/schedule.html


9

Update: Mathematica 10 seems to have resolved this issue, via the "Always Exit after closing last window" option in Preferences->Interface. David, it looks like they actually listened to your suggestion!


9

Using Autohotkey the following works pretty well. #IfWinActive ahk_class NotebookFrame Enter::Send {blind}{shift down}{enter}{shift up} Shift & Enter::Send {enter} #IfWinActive In case the internals are ever changed you can use the following to get the internal class. Return:: WinGetClass, class, A MsgBox, The active window's class is "%class%...


8

Another option would be to use the at command to create detached jobs: echo "math -script test.txt" | at now


8

The answer to this question is inspired by @DBM answering on a related issue: How to write plain Greek in a text cell I had a similiar problem, in summary: I use Style["Some text with greek letters", FontFamily->"Some font, which includes greek letters"] and export it in pdf. As the result the greek letters are shown with Mathematica font, and the rest ...


8

I am having a same problem on Linux, Mathematica 10.0.01. My "solution" (if you are looking for it?) for dashing of the frame was to specify each frame part individually: b = Plot[{x, x^2}, {x, 0, 10}, Frame -> True, FrameStyle -> {{Dashing[1], Dashing[1]}, {Dashing[1], Dashing[1]}}, PlotTheme -> "Monochrome"] Very annoyingly, if I try to do ...


8

Indeed this is annoying. In my ~/.Mathematica/Kernel/init.m I have placed this removal code: With[{dir = $UserDocumentsDirectory <> "/Wolfram Mathematica"}, If[DirectoryQ[dir], DeleteDirectory[dir]] ]


8

You can get the uninstall instructions here. It is mentioned that you need to delete the install directory and two other directories. You could just delete the directory that you have installed Mathematica in, which is /home/programfiles/mathematica/10. I'd also suggest you remove the symbolic links after you remove the directory. which mathematica ...


8

I believe the easiest way is to just edit the mathpass file to contain a line that has !server, where server is the name of your network license server. tutorial/ConfigurationFiles should help you determine where the mathpass file is for your platform. (If it doesn't exist, just create it.)


7

You have probably unchecked the notebook option OutputAutoOverwrite. It should normally look like this:


7

This piece of code should do the trick. It takes effect immediately. SetOptions[$FrontEnd, FrontEndEventActions:>{{"MenuCommand", "HandleShiftReturn"} :> FrontEndTokenExecute["Linebreak"], "ReturnKeyDown" :> FrontEndTokenExecute["EvaluateCells"]}] (Tested on ArchLinux/MacOS_Sierra/Win10Server2016 with MMA 11. Hopefully it will work on ...


6

I also had this problem on Ubuntu 12.04, but this solution didn't help me. I think I've gotten it solved though. I suspect that several of my steps were unnecessary (or unnecessarily convoluted) but here goes: First, make the R launch script and binary installed by Mathematica executable. I don't know if Mathematica actually runs these, but it did allow ...


6

I was having kind of the same problem. I didn't had an error dialog like you and for me, the issue appeared when I rotated 3d graphics. When I did this, after a second or two, the notebook window grayed out too, although when I released the mouse button, everything turned back to normal. This seems to be a common problem and has to do with the settings ...


6

I had to modify the /usr/local/bin/mathematica script to fix 3D antialiasing. It seems that the GLTest script fails and as a consequence Mathematica disables advanced 3D rendering. The fix is to replace the line GLTestResult=`${GLTest} 1 1 1 2 ${userDisplay} 2> /dev/null | grep "GLTest_OK"` with GLTestResult="GLTest_OK" and now antialiasing works. ...


6

First move KeyEventTranslations.tr file to your $UserBaseDirectory in order to not damage installation files. (Rebinding keys to define new keyboard shortcuts) Open the file and find those lines: ... (* Evaluation *) ... Item[KeyEvent["Return", Modifiers -> {Shift}], "HandleShiftReturn"] ... (* Input *) Item[KeyEvent["Return"...


6

I'm expanding my comment to show I get the same problem, on V10.0.1 on Ubuntu 12.04 LTS. I can also repeat it like this: b = Plot[{x, x^2}, {x, 0, 10}, Frame -> True, PlotTheme -> "Monochrome"] And you can see the dashing in the cells down the right-hand side, as well as the dashed frame. What is then weirder is if you click on the graph, this ...


6

If you add this to your KeyEventTranslations.tr file it works on Linux (I only tested english keyboard layout): Item[KeyEvent["}", Modifiers -> {Command, Shift}], FrontEndExecute[{ FrontEnd`NotebookWrite[FrontEnd`InputNotebook[], "{", After], FrontEnd`NotebookWrite[FrontEnd`InputNotebook[], "}", Before] }] ], Item[...


6

RunProcess can only run commands that are separate binaries, and commands like source and exec are built into the shell, not independent of it. You could execute them by sending them to a running zsh process through a process object returned by StartProcess[$SystemShell].


6

I am able to use both, RunProcess and StartProcess, to execute a built-in shell command. At least it works for me on OSX, with zsh or sh shell. Here is a minimal example with the built-in command source (like in the OP's question). First, let's choose our shell : myshell = "/bin/zsh"; (* or "/bin/sh" *) This is some trivial shell script we'd like to ...


6

It looks like you can do this using the Method option in Image3D. Image3D[RandomReal[1, {5, 10, 10}], Method -> "InterpolateValues"] makes the image crisp (as in the OP's version) while Image3D[RandomReal[1, {5, 10, 10}], Method -> {"InterpolateValues" -> True}] gives the anti-aliased (smoother) version. Now I'm really confused... here it ...


Only top voted, non community-wiki answers of a minimum length are eligible