Questions tagged [scripting]
For questions about Wolfram Language Scripts (formerly known as Mathematica Script), or running the kernel without direct user interaction.
372 questions
0
votes
0
answers
54
views
Get file directory, whether notebook or script
I have some code, currently in a notebook, which should produce some output in the same directory as the notebook, for which I am using NotebookDirectory[]. I would ...
0
votes
0
answers
72
views
Robust way to test whether two symbolic expressions equals in python interface of Wolfram script
I have two mathematically equivalent latex strings
...
4
votes
1
answer
206
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 ...
3
votes
1
answer
88
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 ...
2
votes
0
answers
108
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?
1
vote
0
answers
33
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:
...
3
votes
1
answer
198
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 ...
0
votes
0
answers
353
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 ...
0
votes
0
answers
102
views
Properties of conjugate transpose
I need to define the properties of conjugate transpose in mathematica:
Properties of Conjugate Transpose:
...
0
votes
1
answer
168
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:
...
0
votes
0
answers
94
views
3
votes
2
answers
186
views
7
votes
2
answers
169
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 ...
2
votes
0
answers
95
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). ...
0
votes
1
answer
176
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 ...