Skip to main content

Questions tagged [scripting]

For questions about Wolfram Language Scripts (formerly known as Mathematica Script), or running the kernel without direct user interaction.

4 votes
1 answer
135 views

What does the wolfram lint "SuspiciousSessionSymbol" issue mean, and what's the best way to resolve it?

I have a script that I run from a .wl file which I sometimes run from a notebook and sometimes call using wolframscript -file. I ...
Pillsy's user avatar
  • 18.7k
3 votes
1 answer
56 views

Unexpected changes of $InputFileName after using SetDirectory

I have stumbled upon a very strange interaction of the system variable $InputFileName when using SetDirectory and ...
Michael Haring's user avatar
2 votes
0 answers
73 views

How would one edit an individual datum in a Tabular object in Mathematica?

In Excel, for example, or even in R, one can directly edit the cells in a tabular array. With the new Tabular object in Mathematica, is that possible, or is one compelled to write out a script?
Copper Octopus's user avatar
1 vote
0 answers
27 views

Multiple Mathematica Scripts through ssh connection

I am trying to run 8 Mathematica Scripts on a HPC that I access through ssh. I wrote this script: ...
Felipe Augusto's user avatar
3 votes
1 answer
133 views

Why is the execution of a wolfram script `.wl` is slower in linux than in a macos?

I have a wolfram script that does the following tasks in the following sequence: import 2 csv data files make bunch of plots save 4 PDF files of plots I have licensed ...
Raunak Farhaz's user avatar
0 votes
0 answers
180 views

Best way to run Mathematica code from visual studio code?

Is there a way to run Mathematica code in Visual Studio Code that is similar to Python? For example, one can create a Python file called test.py in VS Code and run ...
TDH's user avatar
  • 582
0 votes
0 answers
80 views

Properties of conjugate transpose

I need to define the properties of conjugate transpose in mathematica: Properties of Conjugate Transpose: ...
Reya Rose's user avatar
0 votes
1 answer
114 views

How to run Wolfram kernel from under Windows service to export charts

I want to generate multiple charts using Wolfram as a chart generator. To do so I generate an input file, e.g.. example.m: ...
Konstantin Konstantinov's user avatar
0 votes
0 answers
72 views

Wolframscript REPL breaks lines unnecessarily when ANSI code in string or when string is exactly the terminal width. How to prevent this?

Minimal example code: ...
jWey's user avatar
  • 155
3 votes
2 answers
133 views

Why does Wolframscript handle the standard output differently than the regular terminal?

Here's the code: ...
jWey's user avatar
  • 155
7 votes
2 answers
136 views

Detecting and converting a number from a video (digital panel) into an actual number

Let's say I have video (mp4) of length 02:17:38 (hh:mm:ss), this video is a record of a temperature panel, as shown in the following image. How can I use mathematica to extract the temperature, given ...
Hussain-Alqatari's user avatar
0 votes
0 answers
61 views

Suppress preliminary output from wolframscript

$ /opt/homebrew/bin/wolframscript -code "AirTemperatureData[Here,Now] // First" ...
Steven Buehler's user avatar
2 votes
0 answers
63 views

Evaluation break in WolframScript

Astonishingly, I couldn't find this either by googling or tag search here. CTRL-C completely closes WolframScript (on my Windows 10). But I just want to break the evaluation (if it takes too long). ...
Hauke Reddmann's user avatar
0 votes
1 answer
117 views

Splitting an audio into multiple segments based on the pauses

I am not an expert in mathematica, I wanted to Split an audio into multiple segments based on the pauses. I asked AI if that is possible, it said: "it is possible". It provided me a code for ...
Hussain-Alqatari's user avatar
1 vote
1 answer
169 views

2D momentum type equation for compressible fluids

I have this program which displays errors in the declaration of terms, I've tried to modify it several times but it displays the same errors, apparently in the declaration of the term $(v \cdot \nabla)...
Kamal Khalil's user avatar

15 30 50 per page
1
2 3 4 5
25