Questions tagged [interoperability]

For questions on interfacing or getting Mathematica to work together with other software or technologies.

Filter by
Sorted by
Tagged with
1 vote
0 answers
39 views

Why my MATLink must execute the command `OpenMATLAB[]` twice to realize once normal `OpenMATLAB[]` command?

Problem description To use Matlab code in Mathematica I have tried to use the package MATLink. However, everytime I run the code below ...
narip's user avatar
  • 381
4 votes
1 answer
95 views

How to use a personal function in Matlab within Mathematica utilizing Matlink?

Problem description I've written a function in Matlab as follows: function z = testfuncadd(x,y) z = x + y; end I want to use this function within Mathematica ...
narip's user avatar
  • 381
2 votes
0 answers
103 views

How to set up the Gurobi optimizer?

How do I set up Mathematica to use the commercial Gurobi optimizer? Mathematica should be able to use it, as the Method -> "Gurobi" option exists for ...
István Zachar's user avatar
1 vote
1 answer
63 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 ...
Adam's user avatar
  • 3,937
1 vote
1 answer
109 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?
hengxin's user avatar
  • 840
3 votes
1 answer
68 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 ...
Kuba's user avatar
  • 137k
1 vote
0 answers
72 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 ...
Ahmed Abdullah's user avatar
7 votes
2 answers
600 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 ...
Yaroslav Bulatov's user avatar
1 vote
0 answers
321 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 ...
licheng's user avatar
  • 2,019
1 vote
0 answers
86 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. ...
OpticsMan's user avatar
  • 564
6 votes
1 answer
264 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/...
2132123's user avatar
  • 657
0 votes
1 answer
218 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. ...
Johnson's user avatar
  • 345
0 votes
0 answers
63 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 ...
youpilat13's user avatar
7 votes
0 answers
216 views

How To Install R Packages Via R Link In Windows

So it looks like I got RLink working on my Windows machine: ...
Daniel Berkowitz's user avatar
4 votes
1 answer
128 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 ...
Kirill Belov's user avatar
0 votes
1 answer
152 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, ...
Y. zeng's user avatar
  • 537
5 votes
1 answer
146 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 ...
Alexey Popkov's user avatar
10 votes
1 answer
579 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 ...
Wynne's user avatar
  • 1,516
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: ...
edgardeitor's user avatar
1 vote
1 answer
111 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"] ...
BeTDa's user avatar
  • 480
5 votes
2 answers
181 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 ...
Daniele Binosi's user avatar
4 votes
0 answers
92 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 ...
Kuba's user avatar
  • 137k
2 votes
1 answer
185 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 (...
Yly's user avatar
  • 265
2 votes
3 answers
1k 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, ...
Natasha's user avatar
  • 359
1 vote
0 answers
305 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 ...
BOUNCE's user avatar
  • 589
2 votes
1 answer
350 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 ...
flinty's user avatar
  • 24.8k
4 votes
1 answer
327 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:...
Las Des's user avatar
  • 807
5 votes
2 answers
228 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 ...
Batox's user avatar
  • 153
1 vote
1 answer
164 views

LibraryFunctionLoad with Cool Prop documentation

I use the following command ...
Cezary's user avatar
  • 11
8 votes
1 answer
632 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 ...
beets's user avatar
  • 83
15 votes
2 answers
6k 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;...
Greenrock12's user avatar
15 votes
1 answer
717 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 ...
murray's user avatar
  • 11.8k
1 vote
0 answers
102 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? ...
A little mouse on the pampas's user avatar
6 votes
0 answers
158 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 ...
Julian Moore's user avatar
  • 2,560
2 votes
0 answers
194 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 ...
user49047's user avatar
  • 781
1 vote
1 answer
154 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... ...
crazzymath's user avatar
2 votes
1 answer
292 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: <...
user13892's user avatar
  • 9,303
3 votes
1 answer
332 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 ...
Alexey Popkov's user avatar
1 vote
0 answers
316 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?
Reda.Kebbaj's user avatar
0 votes
1 answer
554 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: <...
user41178's user avatar
3 votes
1 answer
852 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 ...
aadharna's user avatar
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 ...
fmvin's user avatar
  • 261
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.
Szabolcs's user avatar
  • 234k
11 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 ...
Ivan's user avatar
  • 2,207
3 votes
0 answers
257 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 ...
user13892's user avatar
  • 9,303
2 votes
0 answers
57 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) ...
Heberley Tobón Maya's user avatar
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 ...
conor's user avatar
  • 7,389
2 votes
0 answers
91 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 ...
Gerard Oosterwegel's user avatar
1 vote
1 answer
139 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 ...
wilsnunn's user avatar
  • 868
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 ...
MaxJ's user avatar
  • 1,535

1
2 3 4 5