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


25

Yes it is possible, but it is not natively supported. Therefore, the way through ImageCapture will not work here. Nevertheless, no one prevents you to use a library like opencv to access the webcam. With a MathLink wrapper you can write a routine to catch frames from the cam and transfer them as Image to Mathematica. When opencv is initialized and has ...


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


18

You can start Mathematica with : /opt/Wolfram/Mathematica/8.0/Executables/Mathematica -sl & and then open your notebook in the same session with : /opt/Wolfram/Mathematica/8.0/Executables/Mathematica -sl foo.nb From the man page Mathematica --help : -sl (--singlelaunch): Open in an existing process, if possible.


16

Mathematica is available for non-commercial use on the RPi now. No. Mathematica is not available for Linux on the ARM architecture; only for x86/x86-64. Even if it ran, performance wouldn't be very good, considering the Pi's weaker hardware. From the FAQ you linked to: Overall real world performance is something like a 300 MHz Pentium 2, only with much,...


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

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

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


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

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

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


12

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


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


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


10

In my opinion you don't have many options here and honestly, I would not try to achieve this with Mathematica and Linux because the font-rendering was, is and will at least for some time be crappy. In the examples, I use the "Liberation Serif" which is the default serif font on my system. Let me give some ideas: The easiest thing I know is to use ...


10

I was never able to find a completely satisfying solution, but the following is what I use. The shortcuts for the Mathematica GUI are defined in [MathematicaDir]/SystemFiles/FrontEnd/TextResources/X/KeyEventTranslations.tr. You can also add your own shortcuts there, as long as the functionality you require already exists. (Actually you can also write your ...


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

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]


9

You appear to have access to 7 Mathematica licenses each of which allow running 4 sub Math kernels. This should allow you to address 4 + 28 = 32 kernels Also of interest, each Mathematica network license comes with a home use license. You could allocate the home use licenses to additional machines (I think even virtual machines) and get another 4 ...


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

The screen won't show when you use File | Quit, or you can use the shortcut Ctrl+Q. I actually wrote the Wolfram support about this issue, the response said that that window opening is the desired behavior and it's thought to be somewhat of a substitute of not having the "main bar" the Windows version has. In that sense, it is not intended that closing all ...


8

It is indeed possible and I use this all the time. Instead of the for ... & done you might want to check out gnu parallel. It's great for running parallel processes from the command line. parallel can be told how many processes to run in parallel, so you don't run out of licences or memory. Here is an example: parallel -j4 "math -noprompt -script ...


8

It is possible, and I do it routinely. The limitation is the number of kernels your license allows you to run simultaneously. This I believe is reported by $MaxLicenseProcesses: Of course you need to be careful not to write to the same files etc!


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

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

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


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