All Questions
Tagged with interop or interoperability
244 questions
7
votes
1
answer
529
views
Using Wolfram Library Reference in Excel VBA
Long time ago I did this question to MathGroup, but without success.
In Excel VBA, in Tool/References, there is a option called "Wolfram Mathematica Control 8.0 Type Library"
I belive that ...
7
votes
1
answer
151
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'...
7
votes
1
answer
495
views
How to integrate Mathematica with other software
Mathematica is a fantastic platform for Mathematical analysis, physics, quantitative finance and most realms of scientific work.
However, it doesn't serve well for general purpose programming, in ...
7
votes
1
answer
426
views
WinBUGS Interface
Has anyone created on WinBUGS (Bayesian inference Using Gibbs Sampling) interface with Mathematica similar to BugsXLA for Excel? I'd like to setup the model, define the evidence in a notebook and then ...
7
votes
0
answers
254
views
How To Install R Packages Via R Link In Windows
So it looks like I got RLink working on my Windows machine:
...
6
votes
2
answers
2k
views
6
votes
3
answers
780
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]) ...
6
votes
2
answers
982
views
Using Read for calling external command does not release file handle
The standard and robust method for piping to/from external commands under Windows is to create a temporary file, save the input into it, pipe it to the command and save its output to a second file. ...
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 ...
6
votes
1
answer
274
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/...
6
votes
2
answers
424
views
Linux’s Bash shell in Windows 10 and mathematica
As we know, Linux’s Bash shell is coming to Windows 10. Now, I want to know, how to using Run[] command or other commands to run some commands like gfortran installed in Linux of Win10 ? And, is it ...
6
votes
2
answers
2k
views
How to export images in EPS format that can be opened in CorelDraw
I am preparing a paper. The journal requirements are odd: only eps files for pictures are accepted. All pictures I have drawn in Mathematica and exported in eps format in the usual way: ...
6
votes
1
answer
392
views
6
votes
1
answer
266
views
How to specify the browser used by SystemOpen?
For the purposes of lecturing I use the statement as the one below:
...
6
votes
1
answer
4k
views
How to continuously run a Python script
I am running this script:
script = Import["!python C:\\...python script", "String"];
but I need to run it a few times as it outputs data I need. I run it every ...
6
votes
1
answer
501
views
How can I use Dynamic to run a script when a new file is added to a directory?
I have an external program saving files to some directory on my hard disc. I'd like to run a script that imports and runs a script on each file as it is added to the directory. Is there a simple way ...
6
votes
1
answer
149
views
Print only when webpage updates
I'm currently developing a small auto-reply bot using Mathematica, and a key barrier is to send a reply whenever the webpage updates, in other words, new messages come in.
I cannot think of any ...
6
votes
1
answer
249
views
How to use FileTemplate instead of Splice that has been superseded?
Having invoked Splice[main.mtex],
...
6
votes
1
answer
386
views
What devices are supported by the connected devices framework?
One of the new features in v10 is support for connected devices.
How can I find out if a particular device is supported by Mathematica? Is there a complete list? Is support being added continually?
...
6
votes
1
answer
855
views
Problem with SerialIO package and Lego NXT
I'm following a guide from The Mathematica Journal that describes how to use Mathematica with the Lego Mindstorms NXT but have some trouble getting started and got stuck with the SerialIO package.
I ...
6
votes
0
answers
162
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 ...
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 ...
6
votes
0
answers
621
views
Exporting *formatted* Excel workbooks
I export Mathematica tables to Excel every day, for sharing reports with non-Mathematica users. It exports the values without flaw, but ignores any formatting. Consider the following:
...
5
votes
2
answers
280
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 ...
5
votes
2
answers
1k
views
How can I insert an EPS file exported from RegionPlot into MS Word?
I generate a figure using RegionPlot and then Export it as "EPS". When I insert this picture ...
5
votes
2
answers
203
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 ...
5
votes
1
answer
144
views
Setting output width for CopyToClipboard
Suppose I have a long string and I copy it to the clipboard:
...
5
votes
2
answers
532
views
Reading non-tabular data with NaN-s from file
A NaN stands for an entry that is not a number/undefined/missing/infinite/etc. On my machine the C code printf("%f", 0/0.) produces ...
5
votes
1
answer
173
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 ...
5
votes
1
answer
494
views
Is it possible to interact with an external program's command-line interface?
I am performing a calculation in Mathematica which relies on calls to an external program that acts as a black box for calculating a function $f$, and I would like to know if it is possible for ...
5
votes
0
answers
105
views
Are ForeignFunction and its friends the next generation of LibraryLink?
It's a bit surprising to me that no one asks about this so far, so let me step up :) .
In version 13.3, an EXPERIMENTAL Foreign Function Interface has been introduced. I'm by no means a C expert, but ...
5
votes
0
answers
48
views
The second escaped path breaks command execution
Due to a terrible chain of events I had to reinstall part of my software. Git among it, but a newer version.
Something changed because earlier all four evaluations were giving me a version info:
<...
5
votes
0
answers
230
views
Can Apple's Numbers spreadsheet link to a Mathematica function? [closed]
I use Apple's Numbers spreadsheet for a single thing, a double entry accounting model to understand complicated financial transactions.
A current model depends on the value of a single initialization ...
4
votes
2
answers
652
views
Cannot call custom function loaded from script using C/C++ MathLink
I am using MathLink with C/C++ on a Unix system in order to call a Mathematica (version 9) function and get the result.
The function I need to call is a personal function of mine ...
4
votes
1
answer
345
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:...
4
votes
2
answers
3k
views
What is the best way to work with complex number array in librarylink function in terms of C++ and Eigen?
I want to use C++ Eigen library in Mathematica Librarylink function.
Currently, I have no problem dealing with real arrays.
But I don't know what is the best way to deal with complex array in ...
4
votes
2
answers
376
views
Using a Mathematica function in Excel
I'm trying to use the FinancialDerivative function in Excel and can't seem to get the formula to work, even without using cell references for the inputs.
In a ...
4
votes
2
answers
363
views
ExcelLink: How to change cell properties like font family, size and borders?
I just purchased the Mathematica Link for Excel. I can't figure out how to change the cell properties in excel using ExcelLink package? Can someone please help.
4
votes
1
answer
303
views
Reading RData files without RLink
I am using Mathematica 8. I would like to read some RData files which I have received. I do not currently have an installation of R on the machine with Mathematica.
4
votes
2
answers
956
views
RefProp in Mathematica
RefProp by NIST is a program that calculates the thermodynamic properties of fluids. I need to call certain RefProp functions ...
4
votes
1
answer
599
views
Mathematica 9 Linking with R
I would like to run a batch job from within the current Mathematica .m file using "R CMD BATCH &" (the job runs in the background when Mathematica proceeds with the current calculations. How can ...
4
votes
1
answer
134
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 ...
4
votes
1
answer
599
views
Using a different version of R with RLink on Windows 7
I'd like to run the R version installed in my Windows 7 system from within Mathematica 9 but when I execute the following command:
...
4
votes
1
answer
298
views
String encoding issue with Pythonika
I use Mathematica and Pythonika to run Python code inside it. And I'm not quite sure what causes my issue: all unicode Python objects look like this: ...
4
votes
1
answer
113
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 ...
4
votes
1
answer
257
views
How to run Racket in Mathematica
My situation is that I write Racket/Scheme code to run some simulation. Then I'd like Mathematica to call Racket to run that code file.
For example: the code file is named ...
4
votes
1
answer
116
views
Control Object Annoyance
This may seem like is a trivial annoyance, but it really is a control object "convenience of use" issue. Example: I want to use a popup menu to determine which Excel worksheet I take data from, as ...
4
votes
0
answers
99
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 ...
4
votes
0
answers
224
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 ...
4
votes
0
answers
109
views
Is there a DatabaseLink for Hive?
I have a Hadoop based data warehouse with which and I typically use the command line or Hue to perform Hive queries. I was hoping there is a built-in library or third party connector for doing this ...