Skip to main content

All Questions

Filter by
Sorted by
Tagged with
7 votes
2 answers
673 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
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 ...
Kirill Belov's user avatar
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 ...
Alexey Popkov's user avatar
1 vote
0 answers
115 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
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
  • 236k
17 votes
1 answer
470 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 ...
Szabolcs's user avatar
  • 236k
10 votes
1 answer
272 views

Corresponding built-in types for Python

Where can I find the correspondence of built-in types between Mathematica and Python?
sunt05's user avatar
  • 4,367
3 votes
2 answers
462 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 ...
atapaka's user avatar
  • 4,036
3 votes
0 answers
165 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 ...
sunt05's user avatar
  • 4,367
2 votes
0 answers
243 views

How to use Pandoc in Mathematica 10?

Pandoc can convert documents in markdown etc. to HTML etc.. It can be worked well in cmd or bat file. I want to use Pandoc in Mathematica 10 on Windows7, but it doesn't work. Method 1: ...
Li Xuan's user avatar
  • 346
16 votes
3 answers
809 views

Why does Mathematica use a different $PATH than terminal?

I am trying to run bash commands from within Mathematica. Funnily enough, Mathematica seems to use a different $PATH environment than the system environment. If I try ...
freddieknets's user avatar
  • 1,085
10 votes
2 answers
575 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: ...
Kuba's user avatar
  • 138k
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 ...
Dr Linh Chi Nguyen's user avatar
1 vote
1 answer
801 views

Running external program from command line

This command works on Windows: ReadList["!" <> "echo hello", String] Assuming the "!" suggests Windows command shell (verified as ...
kamuli's user avatar
  • 13
1 vote
0 answers
169 views

Exchange variable value between Mathematica and Autohotkey script

I have a script written with AutoHotkey and would like to send some data to and from Mathematica. For now I am using the CopyToClipboard[] function in Mathematica ...
Jozef's user avatar
  • 91
3 votes
2 answers
768 views

Interact with external program

I'm using NMinimize with Mathematica 7 using an external Fortran program to get the target value to minimize. I'm doing it using RunThrough with the variables as ...
siritinga's user avatar
  • 253
32 votes
2 answers
8k 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 ...
Xiang Li's user avatar
  • 515
9 votes
1 answer
586 views

How to call external commands with parameters on Win7?

I'm trying to use the Win7 command prompt from a Mathematica notebook. I'd like to do a couple simple things, but I can't seem to get the syntax straight: open explorer.exe in a specific location ...
dionys's user avatar
  • 4,341
23 votes
1 answer
748 views

Calling Sage functions from Mathematica

I recently found a very useful open-source math software called Sage, which provides many useful functions lacking in Mathematica. Since I'm more used to the Mathematica language instead of the ...
hxiao's user avatar
  • 909
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. ...
István Zachar's user avatar
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 ...
Emilio Pisanty's user avatar
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 ...
paul de leon's user avatar
53 votes
4 answers
9k views

Calling MATLAB from Mathematica

How can I call MATLAB functions directly from Mathematica and transfer data/variables between the two systems?
siva82kb's user avatar
  • 631
26 votes
3 answers
2k views

Calling external commands without showing command prompt on windows

I'm playing around with some code that's calling external command-line commands on a windows platform, and when doing this, the command prompt will pop up quickly and then disappear. This is not a ...
jVincent's user avatar
  • 14.8k