3

I want to produce some plots/graphics for a large amount of data on a computing cluster in a high-throughput way. I'd like to do this by piping results through Mathematica where I'd apply some post-processing to generate some visualizations - PNGs, JPEGSs, GIFs, etc. - and send these results back to my personal computer.

But I have no idea where to start with this. Is the correct answer WolframScripts? Does the cluster need extra Mathematica software modules for this sort of functionality?

Searching around has yielded some opaque results. Any suggestion/answer pointing me in the right direction is appreciated.

CasaBonita
  • 131
  • 2

1 Answers1

5

Since the answer is found not in a single 'duplicate', but multiple ones, here's a summary:

  1. Do not use notebooks. Transfer the code to a plain text .m file.

  2. You can run is as math -script myfile.m. You could also use wolframscript. Full info at Wolfram Language Scripts

  3. Since you're running on a headless Linux machine, and want to export graphics, you'll need to manually ensure that an X server is present:

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263