Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [interoperability]

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

18
votes
1answer
380 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 ...
1
vote
1answer
60 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 ...
8
votes
1answer
400 views

How can I get OSX split screen to work?

OSX on Mac now allows two apps to split the screen. https://support.apple.com/en-us/HT204948 Doesn't seem to work in Mathematica, even though the full-screen button displays an icon suggesting that it ...
4
votes
4answers
84 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 ...
6
votes
0answers
83 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 ...
12
votes
1answer
219 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 ...
14
votes
1answer
3k views

Step-by-step instruction to Install C Compiler

I remember using C compiler on my previous computers, and I never had any problems installing them. At this time, however, I failed to work through the instructions provided in Mathematica ...
13
votes
1answer
2k views

Load a Mathematica Package via .Net code

I'm using C# to pass data to Mathematica and return graphs: ...
3
votes
1answer
258 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 ...
20
votes
1answer
863 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.
27
votes
2answers
2k views

How can I conveniently call igraph from Mathematica?

Mathematica has lots of functions for working with graphs and networks, but there are still some functionality holes that are provided by other packages. Also, due to the nature of graph theory, ...
4
votes
2answers
641 views

RefProp in Mathematica

RefProp by NIST is a program that calculates the thermodynamic properties of fluids. I need to call certain RefProp functions ...
23
votes
2answers
2k views

Executing Maple Code Inside Mathematica

Is it possible to create a C++ program using MathLink that will invoke the Maple kernel and execute a very basic Maple command using OpenMaple? I'm envisioning the following: ...
2
votes
0answers
352 views

Copy/Paste of a plot leaves whitespace

I'm trying to copy Mathematica figures into word, but when I do, I get tons of extra white-space for some reason. Either standard ctrl-c - ctrl-p or "copy graphic" does this. I understand that I ...
2
votes
0answers
34 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) ...
28
votes
2answers
5k views

How to programmatically extract mathematical formulas from Word with Mathematica 9?

I have a bunch of(1000+) Microsoft Word document in .Docx format. How can I programmatically extract the mathematical formulas from MS Word using Mathematica 9? This is what example looks like (or ...
2
votes
0answers
53 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
1answer
39 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 ...
10
votes
2answers
361 views

How to copy formatted numbers as MathML without quotation marks?

I have the following code: a = 6.08717*10^6; b = a/3; c = a*1.5; d = a^2; matrix={{a, b, c, d},{b, c, d, a},{c, d, a, b},{d, a, b, c}}; matrix // EngineeringForm ...
1
vote
0answers
63 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 ...
5
votes
2answers
130 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
1answer
96 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 ...
62
votes
6answers
25k views

How to use Mathematica functions in Python programs?

I'd like to know how can I call Mathematica functions from Python. I appreciate a example, for example, using the Mathematica function Prime. I had search about MathLink but how to use it in Python ...
18
votes
3answers
3k views

Write C/C++ programs calling Mathematica functions

I need to write a C/C++ program and call some functions in Mathematica especially those like Solve or NDSolve. The problem is ...
11
votes
1answer
231 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 ...
7
votes
1answer
138 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] ...
104
votes
6answers
11k views

Minimal effort method for integrating C++ functions into Mathematica

Update: While at the time of writing the question loading DLLs with .NET/Link seemed easier, now I always use LibraryLink, which I recommend to anyone with a similar problem! As of Mathematica 8, ...
7
votes
1answer
87 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 ...
54
votes
6answers
9k views

Is there a way to run Python from within Mathematica?

I know there is some support for running Mathematica from Python, but is there any way to do the reverse. For example, to import some Python classes and use them in Mathematica?
3
votes
0answers
117 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 ...
9
votes
1answer
240 views

Corresponding built-in types for Python

Where can I find the correspondence of built-in types between Mathematica and Python?
8
votes
1answer
643 views

Using the variable in the MATLAB workspace using MATLink or any other packages

I have a program in MATLAB and after I run the program, I get some results in MATLAB's workspace. Now, I need to use these results in Mathematica. What I currently do is that I save the workspace as a ...
8
votes
1answer
391 views

What is the correct path to add a camera driver?

I have a long time difficulty getting Mathematica desktop ImageCapture[] to work with frame grabber devices. I am using a Pinnacle 510 and 710. The function is ...
12
votes
2answers
417 views

Simple example of NetGraph running in MXNet?

There is an great example of exporting a NetGraph (that was trained in Mathematica) into the MXNet's format. However, I think there's a bug or something is wrong with the answer, because once ...
10
votes
2answers
353 views

How to respond to password prompt with StartProcess?

Title says it all so let me show it on a Git example on Windows. Let's say you have your git executable on the system PATH: ...
4
votes
0answers
106 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 ...
3
votes
2answers
188 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 ...
9
votes
1answer
334 views

How can I wrap a C++ object in WSTP?

I am trying to wrap a sophisticated C/C++ API in Mathematica using WSTP, but can't work out how to return a pointer to a C/C++ data structure. This object was created on the C/C++ side of the wrapper, ...
3
votes
0answers
63 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 ...
15
votes
4answers
1k views

How to trigger UNIX command-line command from Mathematica notebook?

At UNIX command line, one can run ls -la $HOME. How to trigger this from Mathematica notebooks? Run["!ls -la $HOME"] ...
2
votes
1answer
264 views
14
votes
3answers
3k views

How to write data from Mathematica to an existing formatted Excel file?

I have a sheet in an Excel file already formatted: different colors, fonts, columns width and cells styles. I want to fill-out values from Mathematica into specific cells of that sheets, or use that ...
30
votes
2answers
2k views

Can anyone explain how to use Mathematica's OAuth package?

I noticed that in HTTPClient.m which is included with Mathematica 9 and is located in ...
3
votes
0answers
117 views

SymbolicC/SymbolicCUDAFunction generating C/C++ parser?

I wish to do some program transformation and analysis. Is there any package that generates SymbolicC expressions from C code? In a sense I'm looking for the ...
1
vote
0answers
75 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 ...
0
votes
0answers
105 views

Run Mathematica notebook using VBA

I want to run mathematica notebook using excel vba, can someone help me with a sample code?
1
vote
1answer
242 views

Mathematica function into R

I am R user and very new to mathematica. I want to make run a .wl file into R script and using its results into the same R script. Is there any possible way to load and run .wl file into R? Your help ...