Questions tagged [external-calls]

Questions on calling external executables, not necessarily through MathLink.

Filter by
Sorted by
Tagged with
1
vote
1answer
73 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 ...
6
votes
0answers
63 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 ...
0
votes
0answers
27 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: ...
4
votes
0answers
40 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 ...
0
votes
0answers
27 views

Unable to import local Python module to ExternalEvaluate session

Ever since upgrading to Mathematica 12, I have been unable to import a local module in Python that I need for an ExternalEvaluate session. Here is what I have that worked perfectly in Mathematica 11 ...
1
vote
1answer
58 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: <...
0
votes
0answers
35 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
487 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: <...
21
votes
1answer
895 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.
1
vote
0answers
59 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
43 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
25 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
54 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 ...
1
vote
0answers
118 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
105 views

How can I ExternalEvaluate Python with tesseract?

...
1
vote
0answers
44 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 ...
0
votes
0answers
27 views

Python Syntax highlighting in external code cell [duplicate]

Mathematica has python external code cells and they execute using the available python kernel on the machine but the code cells don't have python syntax highlighting which is necessary for ...
3
votes
2answers
164 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 ...
2
votes
1answer
241 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 ...
6
votes
1answer
101 views

How to use VBA types with UNDERLINE in it's name in NETLink?

When coding with VBA functions in NETLink, I need the enum reference. It's ok to get the ...
0
votes
0answers
42 views

problem with calling external “gdrive” command line tools

I am on linux. There is command line tool called "gdrive" that can handle google drive upload and download. It's github address is https://github.com/prasmussen/gdrive . But I got problem calling ...
1
vote
1answer
106 views

Python module attributes not recognised in ExternalEvaluate

I have Python installed and running properly. I have a file called test.py with contents c = 5 When I go to the file's ...
6
votes
0answers
52 views

RunProcess not working on Windows (looking for information on this problem)

I am the author of the MaTeX package, and occasionally I receive support requests from users in e-mail. By now I believe I have ironed out virtually all bugs in MaTeX, and worked around most ...
2
votes
1answer
117 views

LieArt — 8 dimensional Irreducible representation of $\mathrm{SO}(8)$ and their decompositions - No.2

This is the followed up question of LieArt --- 3 different 8 dimensional Irreducible representation of SO(8) and their decompositions, Since $$ \mathrm{SO}(8) \supset \mathrm{SU}(2) \times \mathrm{...
1
vote
0answers
104 views

LieArt — 3 different 8 dimensional irreducible representation of $\mathrm{SO}(8)$ and their decompositions

I am using the LieArt which you can download freely online https://arxiv.org/pdf/1206.6379.pdf There are three different 8 dimensional $\mathrm{SO}(8)$ irreducible representations, formally it is ...
2
votes
0answers
33 views

Create a ProcessObject for a process not made with StartProcess

I am launching and linking to Mathematica from an external process and would like to be able to create a ProcessObject for the launching process that will support <...
1
vote
1answer
51 views

How to pass an “enter” to the external application?

I have been trying to make an .exe file that I have become more automated by using Mathematica, but I am having trouble getting it to work. The file is based in ...
7
votes
2answers
198 views

Control a Mathematica kernel from the front-end and from python

I'd like to be able to start and control a Mathematica kernel/front-end from python and be able to evaluate things in a notebook and query results on the python side too. Is this possible?
11
votes
1answer
236 views

Using ImageJ filters directly from Mathematica through J/Link

tl;dr I am looking for a short but complete example that shows how to apply an ImageJ filter to a Mathematica Image through J/Link. Fiji/ImageJ is one of the ...
9
votes
1answer
133 views

How to display images and plots from ExternalEvaluator?

I have a conda python 3.6 environment registered as the default ExternalEvaluator with numpy, matplotlib, cv2, and PIL installed: I'd like to show images and plot ...
5
votes
0answers
42 views

Dynamically access variables in external session?

I tried to get a value from a python session to show up in a dynamic cell: First run: ...
3
votes
0answers
50 views

How to add new python type translation to ExternalEvaluate?

Seems like Mathematica can only import basic types (lists, numpy objects, etc). Is there a way to tell Mathematica how to understand arbitrary python objects?
3
votes
1answer
35 views

How to delete certain item(s) returned by FindExternalEvaluators[]? [duplicate]

I have tried UnregisterExternalEvaluator only to find that the item's state "Registered", changed from True to ...
5
votes
1answer
182 views

Run Does not Work

Hi I would like to use the terminal code OCR softwar, called: Tesseract Optical Character Recognition (OCR) Here you have a nice description of how to set it up: http://chillyfacts.com/convert-image-...
0
votes
0answers
61 views

RunProcess PowerShell command to obtain Active Directory groups

Is it possible to run this Windows cmd command in RunProcess? ...
3
votes
0answers
129 views

Running latex via `RunProcess` or `ExternalEvaluate` fails in Ubuntu 18.04 due to `ZLIB_ 1.2.9' not found

I want to compile some latex documents programmatically. But one error is spoiling my whole pipeline that works in Windows. How to reproduce: Install texlive on ...
1
vote
1answer
75 views

RunProcess and Ghostscript problem

I have created a pdf from two plots with GraphicsColumn and now I need to get rid of the extra whitespace on the sides. Don't use ...
1
vote
0answers
44 views

Running an external (C++) program with a parameter file

I want to run an external piece of code, which takes in a parameter file. It's structured like: param1 1.0 param2 0.0 param3 2.0 param4 0.5 I want to execute ...
2
votes
0answers
26 views

How to use “Segment” in “GoogleAnalytics” service connection?

I‘m trying to make a GA request using the "Segment" parameter but as the the Wolfram Documentation states, Segment ID must be an integer: segments the data returned for your request; accepts an ...
4
votes
0answers
141 views

Use conda env for ExternalLanguage cell?

I really like the new 'ExternalLanguage' cell in v11.3. Is there a way to tell the cell to use a specific conda environment, either as default or for a specific input cell? Mathematica can find ...
5
votes
1answer
63 views

Interfacing with an external computational homology program called CHomP

I have an external program called CHomP. I am trying to send a command to CHomP via RunThrough, and read the output string. It ...
8
votes
1answer
172 views

“ExternalLanguage” cell with ExternalSessionObject

How do I configure new External Language Input cell (that appears when pressing >) to use my instance of Python? I'm aware of ...
6
votes
1answer
134 views

FindExternalEvaluators[“Python”] gives me an uninstalled version of Python

Long time ago, I have two versions of python installed in my pc, and I registered them all in mathematica. Later I uninstalled one of them, but ...
1
vote
1answer
215 views

RunProcess works but not StartExternalSession

I'm using MMA 11.2 on Ubuntu 16.10. Any reason why RunProcess[{"python", "myscript.py"}] works, while ...
9
votes
1answer
241 views

Corresponding built-in types for Python

Where can I find the correspondence of built-in types between Mathematica and Python?
0
votes
0answers
192 views

Run external fortran program encountered segmentation fault

I have a fortran program has some command line parameters. I want to use Mathematica's Run function to realize simple parallelization to loop over a set of command ...
3
votes
0answers
71 views

How to open terminal from Mathematica

I am currently trying to open a terminal in Linux from Mathematica in which the present working directory is given by the Directory[]. My naive attempt ...
0
votes
0answers
54 views

link to a external cmd

I have started a process process=StartProcess["cmd"]; ...
0
votes
0answers
81 views

Feeding Executable Arguments into Run - or using RunProcess without the kernel CPU usage

I am trying to automate the submission of many executables with variable parameter values via Mathematica on Windows 10 x64. Running the executable from Mathematica works great for executables that ...
2
votes
0answers
83 views

Easy way to download/upload to S3?

I need to access a bucket to put and get a few files, is there any nice way to do this in Mathematica?