Questions tagged [external-calls]

Questions on calling external executables, not necessarily through MathLink.

Filter by
Sorted by
Tagged with
3
votes
1answer
59 views

How to enable WakaTime for the Mathematica front end?

WakaTime is a tool for logging one's coding activities, and now have amazing coverage for code editors. Although I write Wolfram in VS Code, I still spend a lot of time tweaking and testing in the ...
3
votes
0answers
27 views

Can one preset credentials for ServiceConnect[“Twitter”, “New”] to allow wolframscript headless use?

Trying to run some wolframscript code from a server, is it possible to set ServiceConnect credentials in the environmental variables for example?
0
votes
0answers
19 views

ExternalEvaluate Python: Cannot import local file

I am trying to use ExternalEvaluate for a Python session. For some reason I cannot import a file from there that I can import successfully when I call python some ...
0
votes
1answer
65 views

Send plain text out through a COM port (such as Labview, MATlab, Python or even a terminal emulator)

We have purchased a pump. And we would like to control the pump through Mathematica. The furnished has explained to us: ...
1
vote
1answer
49 views

External Controllers - Unexpected Behaviour and Operation

My system has Windows 10 Pro 20H2, Mathematica 11.1.1.0 and the following external controllers plus Loupedeck Live: 1- Why do the following commands work: a) These don't: b) These don't update in ...
0
votes
0answers
36 views

How to call LabVIEW's .vi files in Mathematica?

I want to use Mathematica to process the data collected by LabVIEW, is there any way to implement Mathematica's call to LabVIEW's .vi files?
0
votes
1answer
57 views

Solving linear systems efficiently

In certain calculation I encountered a system of linear equations in 144 variables, and it takes hours to compute. Most probably the reason is that coefficients are really huge integers (about $10^{50}...
1
vote
0answers
49 views

Problem with RunProcess

I'm trying to use the RunProcess function to run docker on Mac OS using Mathematica. But there is a problem: ...
1
vote
1answer
41 views

External evaluations — selecting one of several Python versions

I have several Python versions installed and registered to Mathematica: FindExternalEvaluators["Python"] When I run the following code which one of ...
3
votes
1answer
69 views

IMO WSTP does not work with the Visual Studio 2019 tools, can you prove otherwise?

Can LINK addtwo.obj addtwotm.obj wstp64i4.lib /OUT:addtwo.exe actually work with Visual Studio 2019 tools, if so how? ...
0
votes
1answer
82 views

Capture screenshot of a certain window given its title

Is there a way to find the handle of a certain window and take a screenshot in Mathematica without having to call external programs? Something that connects with the API for the operating system.
12
votes
4answers
256 views

Is it possible to call back to Mathematica when using Python through ExternalEvaluate?

ExternalEvaluate makes it possible to call Python code from Mathematica. The Wolfram Client for Python makes it possible to call Mathematica from Python. When using ...
3
votes
1answer
96 views

How to use Python's input() with External Evaluation?

I want to use input() in Python code which runs in the Wolfram Notebook. So I create an external evaluation cell by typing ">" and choosing Python. Then I define this function: ...
2
votes
0answers
17 views

Remove existing ServiceConnect authentication credentials

I am working on a project using the BingSearch ServiceConnect (ServiceConnect["BingSearch"]) and I would like to use a different authentication key then ...
2
votes
0answers
79 views

How to use Mathematica code in LaTeX files?

How can you use Mathematica code in LaTeX files? any similar to A random number is RNUMBER and the square of RNUMBER is RNUMBER^2 appearing numbers instead the capital letters (or Mathematica code) ...
2
votes
1answer
119 views

Missing Dependencies for Python in Conda in MMA 12.1 in Windows 10

I tried to run python code in MMA 12.1 on my Windows 10 computer. However, it seems that the python in conda has MissingDependencies, as shown below. According to this FAQ thread, https://support....
3
votes
0answers
33 views

How to use ExternalEvaluate in ResourceFunction?

Are there any working examples or best practices for writing ResourceFunction that package or depend on external language code (and package dependencies) through <...
7
votes
1answer
134 views

How to enable R in ExternalLanguage cell?

Mathematica 12.1 adds support for R in the ExternalLanguage cell. But this does not work out of the box. Mathematica downloads very old RLinkRuntime-Windows-9.0.0.0...
2
votes
0answers
155 views

Opening PDF file on a specific page

Trying to keep track of my Mathematica projects I usually include references to various PDF documents, websites, directories etc. such that I can open them from within the project. In this context I ...
11
votes
1answer
165 views

Installing R libraries for use with ExternalEvaluate?

As of version 12.1, R is an officially supported external language, however, I can't seem to install any packages. I tried using my RStudio: ...
6
votes
1answer
148 views

RegisterExternalEvaluator claims MissingDependencies even though ZMQ is installed

I have an Anaconda Python installation in a non-standard location. So I ran RegisterExternalEvaluator["Python", "path-to-python.exe"] But I got the following ...
7
votes
0answers
145 views

Interfacing Mathematica with Tableau desktop

Are there any known methods or examples of connecting Mathematica with Tableau in any fashion? I'll accept any solution that demonstrates a method of either: Calling Tableau from within Mathematica ...
1
vote
0answers
67 views

How to call the function calculation result of Magma in MMA

Magma is a very useful abstract algebra calculation software.How to call the function calculation result of magma in MMA? ...
2
votes
1answer
92 views

InstallR fails on MacOS 10.15 (Catalina)

Here is code I evaluated and the error message: ...
8
votes
1answer
222 views

ExternalEvaluate[pySys, pyCmd] evaluates to Failure[…]

ExternalEvaluate[pySys, pyCmd] evaluates to Failure[...] every time pyCmd contains some ...
6
votes
0answers
213 views

Failed to start python external session

I use Wolfram Mathematica 12 on Windows 10. Whey I try to register external evaluator RegisterExternalEvaluator["Python", "C:\\Python27\\python.exe"] it fails ...
3
votes
0answers
117 views

Calling custom function from C++

I'm programming a project where I use multivariate symbolic polynomials. At some point I need to perform a PolynomialMod over a prime modulus, but the library GiNaC which I use works only over the ...
13
votes
1answer
551 views

How to display images inside Mathematica with matplotlib

How to display images inside Mathematica with matplotlib. A new window is generated by default, but is it possible to display the picture directly in the notebook? Like this: related: How to ...
3
votes
0answers
126 views

How to call an old build-in function in a new version of Mathematica?

In order to use the UnitStep of Mathematica 5.2, I have to install two different versions 5.2 and 11.3 at the same time because ...
4
votes
0answers
57 views

Run computation in separate process and kill it after a time limit

I am looking for a solution to run a Mathematica calculation in a separate process (separate kernel) and cancel the computation after a given time. If it cannot be cancelled, then just kill that ...
10
votes
1answer
134 views

How to extend External Language Input?

Is it possible to add a new option here and bind an evaluator? Is it possible to take SageMath, Matlab, Maple, etc. as examples to provide a complete process demonstration?
8
votes
1answer
263 views

How to open a Python interpreter input cell?

Something weird just happened to me: I mis-typed a keyboard shortcut, hitting the wrong keys, and a new notebook opened up with a Python prompt! Just for grins, I tried entering some simple Python ...
1
vote
1answer
88 views

How to run C and Mathematica repeatedly?

I use a C program to generate a ".txt" file, and import this ".txt" file into Mathematica to do some calculations and export these calculations. Due to limitation of data size in C program, I have ...
7
votes
0answers
205 views

How to call the Wolfram Engine from swift?

I'd like to call the Wolfram Engine within a swift project in Xcode. Are there any known methods or available resources on how to do this? I'm hoping to include it as a resource library for use inside ...
1
vote
0answers
113 views

Using Python in Mathematica : RegisterExternalEvaluator doesn't work

I followed this tutorial https://reference.wolfram.com/language/tutorial/ConfigurePythonForExternalEvaluate.html, installed zmq, restarted mathematica and put this code: ...
5
votes
1answer
78 views

NodeJS external session not returning value

I have setup my NodeJS session and performed the following test. I evaluate the following commands in ExternalLanguage cells. <...
6
votes
2answers
85 views

How to use console.log() in the new NodeJS external language Cell functionality in version 12.0?

If I type the following Mathematica returns nothing. Requesting Information[%] seems to indicate that the operation $Failed. I ...
1
vote
1answer
126 views

Question regarding Run command in Windows

This line below in the cmd shell unzips the content of a zip file D:\zips\test.zip in the folder C:\Users\mike\Desktop\test: <...
2
votes
0answers
55 views

RegisterExternalEvaluator with command line options

I'm trying to register NodeJS as an external evaluator in Mathematica 12.0. This works fine generally speaking. (i.e. following https://reference.wolfram.com/language/workflow/...
18
votes
3answers
659 views

How to use the library exported from FunctionCompileExportLibrary outside of Mathematic (e.g., in Visual Studio)?

Mathematica 12 has a new function FunctionCompileExportLibrary, which can export a pure function as a .dll file like this: <...
23
votes
1answer
1k views

How can I use the Python library networkx from Mathematica?

Is there an easy way to access the Python library networkx from Mathematica? The improvements to ExternalEvaluate in Mathematica 12.0 should make this feasible.
3
votes
0answers
96 views

Difficulty with ExternalEvaluate

I am trying to import a Python function or execute a Python script from inside Mathematica, but the ExternalEvaluate command drives me nuts. I proceed cautiously ...
2
votes
0answers
392 views

Is there a API to scrape WhatsApp?

Is there an API to scrape WhatsApp messages into Mathematica? Either doing it directly in Wolfram Language or using some python API and WL's ExternalEvaluate. All ...
1
vote
0answers
36 views

Connect to running external session?

Is there some way to connect to an already running process in the same way that StartExternalSession starts a process?
1
vote
0answers
215 views

How can I efficiently call an external Python script that needs to run continuously?

I am writing a Mathematica program that tries to run 100+ Python programs, via StartProcess[], continuously. It seems to work when I run < 100 programs, but, at ...
2
votes
0answers
735 views

Can't register python in ExternalEvaluate

I had Anaconda 3 installed on my system and python registered with the following link: RegisterExternalEvaluator["Python","C:\\Users\\atfai\\Anaconda3\\python.exe"]...
1
vote
0answers
162 views

How can I ExternalEvaluate Python with tesseract?

...
1
vote
0answers
47 views

ExternalEvaluate Python print is printing an extra empty cell with newline

When using print command in ExternalEvaluate["Python","print(1+1)"] or ExternalLanguage cell using >, there is always an extra ...
3
votes
2answers
464 views

Is it possible to call Windows API function to Read/Write INI file directly?

I want to create a function to read or wirte windows *.ini files, so I plant to call GetPrivateProfileString and ...
4
votes
2answers
662 views

How to register Anaconda3(Python3.7) as external evaluator enviroment?

I have installed Anaconda3 (version 5.3.1 for Windows with Python 3.7, 64-bit) as the Python working enviroment, but when trying to register it as an external evaluator, it ...