# Tag Info

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

23

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

17

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

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

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.

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

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

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

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

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

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

9

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

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: ... 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 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] 7 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 ... 7 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 ... 7 You have probably unchecked the notebook option OutputAutoOverwrite. It should normally look like this: 7 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 ...

6

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

6

Just rename the kernel directory to Kernel. Then it works. Unix is case sensititve.

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

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

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

6

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

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

5

Try setting your shell variable to NVIDIA_DRIVER_LIBRARY_PATH=/usr/lib64/opengl/nvidia/lib/libnvidia-tls.so i.e. point it to a specific library.

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