Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
22 votes
2 answers
955 views

Are there any "RLink" like projects, which enable the interaction between R and Mathematica?

I want to borrow the vast amount of packages of R. I know there was one but it is neither sold nor supported anymore. So are there any active open source projects for linking R with Mathematica? Thank ...
Ziyuan's user avatar
  • 1,075
19 votes
4 answers
6k 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 ...
Andry's user avatar
  • 431
17 votes
1 answer
2k views

How to install and configure Intel C++ Compiler for Mathematica correctly?

I wish to try the trial version of the latest Intel C++ Compiler for Windows with Mathematica. I have downloaded the current version of Intel® C++ Composer XE 2011 for Windows and installed only the "...
Alexey Popkov's user avatar
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
16 votes
5 answers
2k views

Is there a Mathematica/Lisp link?

I'd like to start learning Lisp as it sometimes leads to interesting answers on this site with concepts borrowed from this language, so I'm curious. As I already spend most of my programming time in ...
faysou's user avatar
  • 11k
16 votes
1 answer
5k 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 ...
Artem's user avatar
  • 1,037
14 votes
1 answer
1k views

Using a different R version with RLink

I wish to use a different version of R than what is provided by Mathematica 9. For example, I want to use the Macports version of R, where R_HOME is ...
Eric Brown's user avatar
  • 4,436
14 votes
3 answers
401 views

ForeignFunctionLoad / RawMemoryAllocate and c-struct that includes an array

I have an external c-function I need to call, and I wish to use ForeignFunctionLoad. The c-function, foo, takes as an argument a reference to a struct, for example: ...
Stefan Gillessen's user avatar
13 votes
2 answers
524 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 ...
user5601's user avatar
  • 3,830
12 votes
2 answers
1k views

Reading data from Google Docs

I am working on a personal project involving a CloudDeploy[ ] that reads data off a Google Doc and then works with it. Ideally, the Google Doc is either a text document or a spreadsheet which contains ...
Andrea's user avatar
  • 558
10 votes
0 answers
356 views

Call Magma in Mathematica

I've written some code in Mathematica, related to some group theory questions I have. Subsequently, I found that part of the code could be significantly sped up if I could just call a routine in ...
Pace Nielsen's user avatar
9 votes
1 answer
248 views

Is it possible to move .mx file from one server to other?

I have mathematica file in one server along with .mx file. Is there any way to move the .mx file from one server to other such ...
magesh's user avatar
  • 121
8 votes
1 answer
511 views

CDF and MediaWiki

Recently there was a handful of CDF embedding-related topics. However I would like to ask whether anyone has succeeded in embedding CDF into MediaWiki page? I've attempted to do so with the Widget ...
iav's user avatar
  • 2,016
7 votes
2 answers
583 views

Web Browsing Automation: how to expand all comments under a blog post?

I wish to expand all the comments under a LiveJournal post for the purposes of saving the complete thread of comments. According to LiveJournal's FAQ when a post gets more than 50 comments they are ...
Alexey Popkov's user avatar
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 ...
user avatar
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'...
Kuba's user avatar
  • 138k
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: ...
Michael Stern's user avatar
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 ...
norq's user avatar
  • 171
6 votes
2 answers
2k views

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

In ...
Conor Cosnett's user avatar
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 ...
R.Astare's user avatar
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 ...
Julian Moore's user avatar
  • 2,570
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 ...
Wjx's user avatar
  • 9,660
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]) ...
wilsnunn's user avatar
  • 918
6 votes
1 answer
249 views

How to use FileTemplate instead of Splice that has been superseded?

Having invoked Splice[main.mtex], ...
Display Name's user avatar
  • 2,059
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
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
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 ...
matheorem's user avatar
  • 17.4k
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.
user13892's user avatar
  • 9,751
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 ...
Andry's user avatar
  • 431
3 votes
3 answers
2k 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
3 votes
1 answer
1k views

MathLink compile errors

Don't you just love it when your computer is working fine, you work with some good examples, everything is wonderful and your relationship with your computer is the best? I do. But what happens when ...
jmlopez's user avatar
  • 6,520
3 votes
1 answer
293 views

Handling error in WSTP program C/C++

I have a program, written in C++, which uses WSTP to communicate with Mathematica 10 (i.e., linked using Install["name_program"]). How should my code report an ...
Igor Alimov's user avatar
2 votes
1 answer
225 views

Clojuratica setup

I am trying to get Clojuratica set up (MMa v 9 free trial) (on a Mac running Mavericks) I am following the instructions in "Clojure Data Analysis Cookbook" but have also followed the instructions: ...
Jonovono's user avatar
  • 425
2 votes
0 answers
101 views

How to trigger Emacs to open a file from Mathematica? [duplicate]

I thought Run will do the trick: Run["emacs -q " <> myfile] Run["! emacs -q " <> myfile] But it does not! I'm ...
user13253's user avatar
  • 8,674
2 votes
1 answer
1k views

ExcelLink: "Choose a Mathlink program to launch" after upgrading from 10.0.2 to 10.1

After upgrading to 10.1, I now get a prompt "Choose a Mathlink program to launch" when I call code that uses ExcelLink. This code worked prior to the update. I am wondering if this is a ...
Doug Kimzey's user avatar
  • 2,279
2 votes
0 answers
142 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
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
2 votes
1 answer
546 views

Exported PDF copy-and-pastable

Is it possible to export pdf documents that allow the user to copy and paste the exported code/text? The following table demonstrates what is pasted after copying the example symbols from a pdf ...
William's user avatar
  • 7,655
2 votes
1 answer
361 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,751
1 vote
1 answer
151 views

Mathpsfrag: failed setup at MathPSfragConfigurationTest (UnPSfrag) line (Windows 8)

I'm trying to follow the documentation on how to get mathpsfrag set up on Windows 8 (64-bit). It failed at the line ...
Hanmyo's user avatar
  • 403
1 vote
1 answer
898 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 ...
Shaami's user avatar
  • 11

1
2