Questions tagged [interoperability]

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

Filter by
Sorted by
Tagged with
6 votes
1 answer
185 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/...
user avatar
  • 635
0 votes
1 answer
162 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. ...
user avatar
  • 105
7 votes
0 answers
99 views

How To Install R Packages Via R Link In Windows

So it looks like I got RLink working on my Windows machine: ...
user avatar
4 votes
1 answer
91 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 ...
user avatar
0 votes
1 answer
110 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, ...
user avatar
  • 173
5 votes
1 answer
76 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 ...
user avatar
9 votes
1 answer
282 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 ...
user avatar
  • 1,426
2 votes
3 answers
540 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: ...
user avatar
1 vote
1 answer
95 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"] ...
user avatar
  • 480
5 votes
2 answers
118 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 ...
user avatar
4 votes
0 answers
54 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 ...
user avatar
  • 132k
2 votes
1 answer
143 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 (...
user avatar
  • 265
2 votes
3 answers
528 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, ...
user avatar
  • 307
3 votes
1 answer
250 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:...
user avatar
  • 787
5 votes
2 answers
169 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 ...
user avatar
  • 153
1 vote
1 answer
107 views

LibraryFunctionLoad with Cool Prop documentation

I use the following command ...
user avatar
  • 11
8 votes
1 answer
430 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 ...
user avatar
  • 83
14 votes
1 answer
570 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 ...
user avatar
  • 11.3k
1 vote
0 answers
81 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? ...
user avatar
5 votes
0 answers
124 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 ...
user avatar
  • 2,410
1 vote
0 answers
149 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 ...
user avatar
  • 751
1 vote
1 answer
140 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... ...
user avatar
2 votes
1 answer
160 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: <...
user avatar
  • 8,237
2 votes
1 answer
233 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 ...
user avatar
1 vote
0 answers
230 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?
user avatar
3 votes
1 answer
705 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 ...
user avatar
6 votes
0 answers
95 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 ...
user avatar
  • 261
25 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.
user avatar
  • 225k
8 votes
1 answer
984 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 ...
user avatar
  • 2,117
2 votes
0 answers
49 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) ...
user avatar
6 votes
4 answers
837 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 ...
user avatar
2 votes
0 answers
81 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 ...
user avatar
1 vote
1 answer
111 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 ...
user avatar
  • 798
1 vote
0 answers
118 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 ...
user avatar
  • 1,525
6 votes
3 answers
561 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]) ...
user avatar
  • 798
10 votes
1 answer
113 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 ...
user avatar
  • 132k
14 votes
1 answer
694 views

WXF encoder library for C++

WXF is a fully documented binary encoding for Wolfram Language expressions. WRI has already published a Python encoder/decoder for this format. ExternalEvaluate ...
user avatar
  • 225k
2 votes
0 answers
87 views

can't start r process in cmd

...
user avatar
  • 8,237
16 votes
1 answer
404 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 ...
user avatar
  • 225k
8 votes
1 answer
108 views

Strategies for creating links to external systems

Often I find myself creating links to external systems, be it a converter from Mathematica to python, a link to Git/GitHub or to an electronic structure package. And I am far from the only one. I've ...
user avatar
  • 45.5k
18 votes
1 answer
508 views

How to connect to an already running interactive Python session?

As Mathematica has the interoperability with Python since M11.2, with major improvements in M12.0, is it possible to connect to already running interactive Python sessions? For example, can we connect ...
user avatar
  • 4,177
10 votes
1 answer
265 views

Corresponding built-in types for Python

Where can I find the correspondence of built-in types between Mathematica and Python?
user avatar
  • 4,177
6 votes
2 answers
2k views

Export a 3D array from Mathematica and import it in python as a numpy array

In ...
user avatar
4 votes
0 answers
161 views

Wrapper for mathematica code with GUI

I have a code written in Mathematica. What I am trying to do is to write a wrapper (say using Python) that will take user input for the Mathematica code, run the code, and create output. I do not ...
user avatar
7 votes
1 answer
148 views

What's wrong with EmbeddedHTML now?

Bug introduced in $CloudVersion V1.38 or earlier and fixed in V1.46 [...] I checked and reproduced your issue, and have passed along a report to our developers on the same [...] [CASE:3973757] Here'...
user avatar
  • 132k
3 votes
2 answers
358 views

Running external program

I am trying to run gnuplot and send it some plotting commands from Mathematica. Unfortunately without any luck. For me the documentation is completely useless as it gives little to no practical ...
user avatar
  • 3,160
3 votes
0 answers
66 views

How to know the real-time memory consumption value of a specified process

I'm on Windows 10, when I run my c++ program, the task manager will show the real-time memory consumption value of the .exe process. I want to plot a conditional ...
user avatar
  • 23.7k
3 votes
0 answers
150 views

`ExternalEvaluate` for NumPy: passing numpy arrays

As ExternalEvaluate for python has been introduced recently in V11.2, what is the best practice for passing data between Mathematica and NumPy? As by default, the ...
user avatar
  • 4,177
2 votes
0 answers
86 views

possibility of using `f2py` for interoperability with Fortran

Although interoperability with Fortran could be realised by using LibraryLink (e.g., Linking FORTRAN with Librarylink), the approach is not so straight forward, in ...
user avatar
  • 4,177
0 votes
0 answers
142 views

Run Mathematica notebook using VBA

I want to run mathematica notebook using excel vba, can someone help me with a sample code?
user avatar
  • 1

1
2 3 4 5