Questions tagged [interoperability]
For questions on interfacing or getting Mathematica to work together with other software or technologies.
239
questions
1
vote
1
answer
55
views
Control metadata of CopyToClipboard
Question
The system clipboard can contain image data and text data (and a plethora of other types). Mathematica copies different expressions as different types of data; copy ...
1
vote
1
answer
92
views
Is there any Mathematica API for Z3?
Z3 has bindings for various programming languages, e.g., C, C++, Java, Python, and so on. Are there any for Mathematica? Or how to implement one?
3
votes
1
answer
64
views
What crops the response from the SocketListen based web server?
I noticed that when the response length passes around 1k characters then it is cut at weird lengths: 424, 936 or 1448 characters.
Response is generated correctly but then it is cut so if the body was ...
1
vote
0
answers
69
views
Repeated calling of Mathematica function from R through system call make it extremely slow
I have the following simple function in test.wls file
x = ToExpression[$ScriptCommandLine[[2]]]
y = ToExpression[$ScriptCommandLine[[3]]]
z = x+y
Print[z]
I call ...
1
vote
0
answers
89
views
SendMail Failure
I am trying to use Mathematica to send an email via my outlook account using the code below:
...
7
votes
2
answers
535
views
Getting data into Julia session?
Mathematica has a way of integrating with Julia, and automatically convert Julia outputs into Mathematica objects (Julia seems to have nice support for low-rank approximation). What is the best way to ...
1
vote
0
answers
283
views
Can OGDF (a self-contained C++ library for graph algorithms) be integrated into Mathematica?
I would like to begin by congratulating IGraphM on the release of its current update (M 0.6.1). This package makes graph calculations on Mathematica much smoother.
The specifics are available at the ...
1
vote
0
answers
84
views
Copying Bitmaps in 13.1.0.0
I have just installed 13.1.0.0 and have been copying bitmaps (ListLinePlot) from notebooks (Edit->CopyAs->Bitmap) into various MS applications in Windows 10. ...
6
votes
1
answer
259
views
Make Mathematica input things on a website and take the data out
So I found a website that calculates polynomials that I need it intakes a word of a's and b's say aabba and outputs a polynomial. Here is the website: http://www.math.stonybrook.edu/~moira/NewApps/...
0
votes
1
answer
203
views
How to copy Mathematica code into Microsoft Word?
Is there a way to copy my mathematica code (with preserved formatting) as text into microsoft word? Below is part of my code.
...
0
votes
0
answers
57
views
Using and executing the missing complex functions of Mathematica in Wolfram script *.wls
I have the following Mathematica notebook on this link notebook
I was told that the binary wolframscript couldn't understand some complex functions of Mathematica.
First, I would you like to convert ...
7
votes
0
answers
185
views
How To Install R Packages Via R Link In Windows
So it looks like I got RLink working on my Windows machine:
...
4
votes
1
answer
110
views
Change DataStructure (or maybe just a symbol) from JLink/Java program
I try to use JLink and Java program for receiving responses from the abstract WebSocket server. WSS not supported by Wolfram Language now, but I can use this java project + JLink for the creating a ...
0
votes
1
answer
146
views
How to make the words in pictures from Mathematica into MS Word can be edited?
I find that when I export graphics to PDF format from Mathematica, the words in pictures can be copied. However, when I save the pictures from Mathematica and then insert those pictures into MS Word, ...
5
votes
1
answer
129
views
Is it possible to run Linux utils from Mathematica using Windows Subsystem for Linux?
I have Windows 10 Professional x64 with WSL2 installed. I've also installed Ubuntu 20.04 LTS from Microsoft Store.
I can type ubuntu2004 in the CMD and get access ...
10
votes
1
answer
517
views
Mathematica and Google Drive backup client
My Mathematica notebooks (as well as all other files I author in my research) are in a directory that is managed by the Google Drive client. This automatically backs up everything I create and I don't ...
3
votes
3
answers
1k
views
Read sympy expression in .txt file as Mathematica input
I have a Python file that has a variable defined using sympy. For instance, let us take the following (crazy) example that I could have eventually since I am automatizing a routine:
...
1
vote
1
answer
109
views
interact with web pages with many hyperlinks and search for a specific name or phrase How?
I have this code that shows many hyperlinks
links = Import[
"http://www.liceobrainstorm.cl/wp-content/uploads/2020/07/",
"Hyperlinks"]
...
5
votes
2
answers
162
views
Image format change when doing direct Cut/Paste
I usually produce graphics with Mathematica and then use Keynote (I am on a Mac running the latest Big Sur OS) for post processing. Until version 12.0.0.0 I would directly highlight the graphics in ...
4
votes
0
answers
86
views
Socket not ready but data is available
Background
I am playing with https://github.com/arnoudbuzing/wolfram-server and I faced problems with requests that are slightly longer. I tried to narrow it down here.
Problem
This could be my ...
2
votes
1
answer
170
views
Calling Julia via `ExternalEvaluate`
I am trying to call Julia from Mathematica via ExternalEvaluate, as per this documentation page. I have Julia installed with all the required packages (...
2
votes
3
answers
917
views
How to use Mathematica from Python
I've been using the following lines of code to generate 3D geometry (ref).
The inputs edges, vd, ...
1
vote
0
answers
274
views
WolframKernel not found when running WolframScript
While attempting to run wolframscript in linux, I get the error
"WolframKernel not found. Use -configure to set WOLFRAMSCRIPT_KERNELPATH Or export WolframKernel=/yourpath/WolframKernel"
I am ...
2
votes
1
answer
255
views
Reading information from a Portable Executable (.exe)
I want to extract information from executable files, such as the names and sizes of sections, symbols, etc. The Wikipedia article has a diagram showing the layout of a PE. See also this diagram
It ...
4
votes
1
answer
308
views
Python module error using Externalsession
What I am trying to do is to generate an array using Python inside Mathematica but I getting TypeError required field:type_ignores missing Module.
Here is the image:...
5
votes
2
answers
211
views
Using WSTP with LibraryLink
I'm building an interface for a Fortran library. I would like to use LibraryLink and Mathematica to do the compilation (via CreateLibrary), Visual Studio is ...
1
vote
1
answer
153
views
LibraryFunctionLoad with Cool Prop documentation
I use the following command
...
8
votes
1
answer
572
views
Reusing PARDISO symbolic factorization
Is there a way to do this natively in Mathematica? I read in several places that this is possible with LibraryLink, but I don't have a lot of experience with C and so I'm having trouble implementing ...
14
votes
2
answers
4k
views
How do you run Wolfram Language code in VSCode?
I have recently gotten into learning the Wolfram Language with Mathematica, I honestly love Mathematica, but my trial has recently ended, and I do not want to go through the mess of installing Eclipse;...
15
votes
1
answer
683
views
Call julia from Mathematica?
How might one go about calling julia from Mathematica? And vice versa?
I'm aware of the MathLink.jl package (https://github.com/JuliaInterop/MathLink.jl), which I've installed into julia 1.3.1.
I ...
1
vote
0
answers
98
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?
...
6
votes
0
answers
148
views
MWE for compiling functions into standalone DLL and calling them in Python?
I have read calling-a-compiledfunction-dll-from-outside-mathematica and the CodeGeneration tutorial and scanned other related questions too numerous to mention, but I am still unclear about how to ...
2
votes
0
answers
188
views
Citing with EndNote X9
I am trying to cite my work with EndNote X9 by using the Insert -> Citation -> Bibliographical Reference menu item, but the citation panel is empty. Before you ask, first I opened EndNote and then ...
1
vote
1
answer
150
views
ExcelLink stop working after Windows 10 update
After Windows Update KB4508433 & KB4512508, ExcelLink stop to work.
If I uninstall these updates, it work again, but windows return to install them...
...
2
votes
1
answer
223
views
How to change the terminal size programmatically that is opened by `RunProcess`?
Why isn't the following linux command working from the RunProcess interface? I want to change the terminal size programmatically and then display the information:
<...
3
votes
1
answer
319
views
RunProcess fails when a directory path contains a space
In my "Documents" folder I've created two directories with names "тест" and "тест 2". When I try to use RunProcess for obtaining directory listing for the first ...
1
vote
0
answers
296
views
Can I use the Gwnum library to accelerate the multiplication in Mathematica?
Is it possible to use Gwnum library to accelerate the multiplication in Mathematica?
0
votes
1
answer
514
views
How to make an executable?
I made a program in mathematica and I want to know if Mathematica permits to generate an executable code (*.exe) for running it on a machine where Mathematica is not installed. This is my program:
<...
3
votes
1
answer
820
views
How to get Python WolframClient library to connect with WolframKernel on Linux?
My question is similar to the one posted here: WolframEngine install + wolframclient for Python on Ubuntu. However, this solution is not fixing my problem.
I cannot get the wolframclient library to ...
6
votes
0
answers
97
views
WXF encoder library for C++ (asking on may 2019) [duplicate]
Is there any updates regarding plans to open-source C library to support WXF?
My question is related to "WXF encoder library for C++". Strongly apologize for opening a new question regarding this ...
26
votes
1
answer
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.
9
votes
1
answer
1k
views
3D rigid body physics engine
Is there a package in Mathematica that will allow me to simulate collisions of 3d rigid bodies?
If not, what known libraries could I use and how?
For example, one problem I want to simulate is a ...
3
votes
0
answers
253
views
How to get the executable out of a compiled function and run it in cmd
Can someone please guide how to run the function compiled by Wolfram Language in cmd independent of the kernel. It seems to export it into ...
2
votes
0
answers
56
views
How to write on a camera device
I am trying to use a USB camera which is made with a CMOS sensor, there are some parameters that can be set for the camera as gain and some others, the problem is talk with the sensor (APTINA MT9P031) ...
6
votes
4
answers
1k
views
How to copy a string to the clipboard from a script?
How to copy a string to the clipboard from a script?
I want the wolfram script to copy a string to the clipboard.
Unfortunately the following script fails to do this.
The same code works perfectly in ...
2
votes
0
answers
87
views
How to evaluate expressions in Mathematica from MATLAB?
I found a lot of information and examples on how to communicate from Mathematica to Matlab using MATLink, but nothing for the other way around. I would like to use Matlab to send variables and ...
1
vote
1
answer
134
views
Using ExternalEvaluate within ParallelDo
I have had great success using Python in Mathematica (for some computations for which there are very well optimised Python packages but not for Mathematica). I have some Mathematica functions that are ...
1
vote
0
answers
128
views
OpenMATLAB[] hangs
I just migrated my Mac from one machine to a new one and it seems like MATLink is broken now. When I call OpenMATLAB[] in Mathematica the command hangs forever.
I ...
6
votes
3
answers
687
views
Using local variables in ExternalEvaluate Python
I am sure that I am missing something here, I have some larger matrices and Mathematica takes too long to compute the eigenvalues and vectors (using Eigensystem[m]) ...
10
votes
1
answer
115
views
SystemOpen from ScheduledTask
I could bet it used to work, now the following code fails 95% of times:
RunScheduledTask[Echo @ SystemOpen @ "https://www.wolfram.com", {1}]
Can you reproduce ...