Hot answers tagged

45

Update: Yes, the Wolfram Language (and Mathematica) are now available free (for non-commercial use) on the Raspberry Pi. Details: http://www.raspberrypi.org/archives/5282 http://blog.stephenwolfram.com/2013/11/putting-the-wolfram-language-and-mathematica-on-every-raspberry-pi/ === We are working on a project related to Raspberry Pi at Wolfram Research. ...


21

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

Thank halirutan very much! It's really the problem of a setting for QT. Mathematica9 crashes when "systemsettings -> Qt Graphics System -> Raster" is selected. This changes the file ~/.kde/env/qt-graphicssystem.sh and hence the QT_GRAPHICSSYSTEM envirenment variable. QT_GRAPHICSSYSTEM=native mathematica # work QT_GRAPHICSSYSTEM=raster mathematica # ...


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

Upon closing the last notebook Mathematica opens the notebook file MathematicaNavigator.nb or MathematicaNavigatorTrial.nb (if you are using a trial version) or MathematicaNavigatorStudent.nb (if you are using a student version). These files reside in [prefix]/Wolfram/Mathematica/8.0/SystemFiles/FrontEnd/TextResources. That path name is hardcoded into the ...


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

Pat, Mathematica Home Edition customers get Premier Support (the "how to plot" kind of help) for 30 days from the day of purchase, and Installation Support (to get your copy of the product running again) forever after. At all times, Wolfram's Customer Support will be glad to reset your activation key so you can reinstall and use your Mathematica Home ...


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

I've also noticed this bug, although buttons/drop down menus do continue to work, for me only sliders become unresponsive after suspend (Ubuntu 12.10/Mathematica 9.0.0.0 x86 64 bits). A possible workaround is thus to change all parameter controls to buttons/dropdown menus by providing a finite list of values the parameter is allowed to take: Manipulate[...


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 ...


7

Ahh! The solution is to export NVIDIA_DRIVER_LIBRARY_PATH to the full path /usr/lib/libnvidia-tls.so.304.54 and CUDA_LIBRARY_PATH to /usr/lib/libcuda.so.304.54! (for my driver version) What a lovely way to waste an afternoon.


7

Please check where your libnvidia-tls.so.* and your libcuda.so is installed. When I'm not mistaken, they are under /usr/lib in ubuntu. Now read this tutorial and find that Mathematica expects these libraries to be in /usr/lib64 for a 64bit Linux. Therefore, close Mathematica and open a terminal and execute (you have to change the library version according ...


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 ...


7

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.)


6

This is AFAIK not dependent on the OS but how you run Mathematica. If you only run the Kernel in batch mode, it is $Input which you can ask to get a file path of the script just running. It sometimes needs some extra care as it will not always hold the full file name if I remember correctly. I'd start to just print its content in your script and then add/...


6

Wolfram don't provide support with Home Edition and suggested that I ask on this forum. I hope it is because we are so awesome and not because we don't have to be paid. It refused to license itself claiming that it had been installed on a 'different' computer.-- mac addresses are still the same. The MAC address is not the crucial thing here, because a ...


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