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

learn more… | top users | synonyms (1)

10
votes
1answer
112 views

How to Copy formatted code without backslashes added?

By default code copied from the FrontEnd is formatted with backslashes added at the ends of lines. For example, evaluating in a Notebook Range[40] and copying ...
5
votes
1answer
105 views

How to copy formatted numbers as MathML without extra quotes?

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}} // EngineeringForm ...
5
votes
1answer
181 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 ...
6
votes
1answer
66 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 ...
0
votes
0answers
19 views

DO Button: convert databin entry from String to Reals

I am learning to use the Wolfram databins and DO Button and DO Note apps for a personal project. The sample code I am using as the Recipe is: ...
0
votes
0answers
64 views

Calling Polymake functions from Mathematica

I'm trying to do some polyhedral manipulations in Mathematica by using some functions from Polymake. But I have difficulty in passing the result from Mathematica to Polymake as an input without ...
1
vote
0answers
111 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 ...
18
votes
1answer
1k views

Mathematica Functions from VBA

I'm trying to call Mathematica functions from VBA (Excel) using .NETLink without success. (Yes, I know Mathematica Link for Excel exists. And yes, I know the proper thing to do is buy it. However, it'...
5
votes
1answer
62 views

Setting output width for CopyToClipboard

Suppose I have a long string and I copy it to the clipboard: ...
13
votes
2answers
477 views

Randomness test suites that can be invoked from Mathematica

There are several test suites referenced at csrc.nist.gov designed to test a (pseudo-)random byte sequence for randomness, and discover possible skews, correlations, patterns, or other hidden non-...
4
votes
0answers
317 views

Call Haskell from Mathematica and return the results inside Mathematica

I would like to learn Haskell using Mathematica's environment. I know there is the RLink protocol. Is there a similar protocol for Haskell?
3
votes
1answer
55 views

Unmodified Clipboard content

How do I get unmodified text content from the clipboard? If you copy the following into the clipboard and use ClipboardNotebook[] ...
0
votes
0answers
30 views

Does a client need Mathematica kernel to run Mathematica code embedded in Java?

I have built a predictive model using Classify. Its performance is great. Now I want to put it into production, and run it on the client side, where the client may ...
0
votes
0answers
131 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: ...
37
votes
5answers
4k 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?
12
votes
2answers
182 views

What is the best way to transfer arbitrary-precision reals using WSTP?

I'm developing a Mathematica package, inside of which there is a number-crunching function. It uses a list of arbitrary-precision numbers as input and it takes a lot of time to do its job. So I've ...
4
votes
1answer
96 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 ...
1
vote
1answer
196 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 ...
2
votes
0answers
166 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 ...
3
votes
2answers
200 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 ...
8
votes
1answer
136 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: ...
6
votes
0answers
134 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 ...
3
votes
1answer
179 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 ...
10
votes
0answers
199 views

How to bundle JLink with Java application using apache maven

The context: I am planning to visualize some results from my MMA code using D3.js. So I wanted to make a simple REST api using the light weight SparkJava framework. Given my fairly nonexistent ...
6
votes
1answer
461 views

What´s the best way to COPY/PASTE Mathematica code into Word?

As you can see in the image the code, with a standard copy/paste you obtain squares instead of "Return=New Line". What´s the best way to copy and paste Mathematica code into Word? One choice is a ...
1
vote
0answers
115 views

Example program WSTP Mathematica 10.3

I am writing a Fortran program and I want to use Mathematica functions form within. I know that a C wrapper should be written first, but I do not know how to proceed further. Basically I want to call ...
1
vote
0answers
50 views

Mathematica interoperability with Max/MSP

A little foreword: I'm an absolute beginner of Mathematica (but I'm a programmer in other languages/software). Now the question: I have a Mathematica Notebook written by a friend of mine which takes ...
1
vote
2answers
1k views

Copy and pasted graphics are fuzzy

I have a function that creates a 2D line with filling to the axis. When I copy this graphic into MS Word it is very fuzzy, so much so that the numbers and text are almost unreadable, not to mention ...
5
votes
2answers
356 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 ...
11
votes
2answers
1k views

Transfer graphics from Mathematica to Word without loss of quality

I want some high-quality 2D graphics produced by Mathematica in my paper. My step-by-step operation as follows: First I make the plot, for example, ...
4
votes
2answers
132 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 ...
5
votes
3answers
276 views

Running PowerShell commands in Mathematica

I'm trying to execute a PowerShell command using Mathematica. Someone has made it before? I tested my command direct in PowerShell, and it worked nice, but no idea on how can I make Mathematica to ...
1
vote
0answers
75 views

Problem with FindDevices[“Camera”] [closed]

I have a problem with FindDevices["Camera"] function. When I try to execute it I get this: ...
16
votes
3answers
2k views

How to make Mathematica graphs in Microsoft Word independent from Mathematica?

When I open a .docx file containing Mathematica graphs on a computer without Mathematica software installed, the graphs look corrupted. For example, ...
3
votes
0answers
140 views

Mathematica Arduino Link [closed]

Has anyone successfully used Arduino Link package to generate code and communicate with the Arduino with Mathematica? I have tried using it but I get "Failed to upload sketch" when I try to connect ...
1
vote
0answers
86 views

How to format convert simple Mathematica expressions into a Maxima-compatible format?

I am trying to compare really long algebraic results from Mathematica with those from Maxima. Maxima can parse the simplest types of expressions output by Mathematica, such as ...
84
votes
6answers
7k views

Minimal effort method for integrating C++ functions into Mathematica

As of Mathematica 8, what is the minimal effort way to integrate an existing C++ function into Mathematica? I think we have these: MathLink (it was quite long ago I used it last time) communication ...
21
votes
2answers
1k 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, ...
1
vote
0answers
79 views

Using Mathematica to connect to Cloudera Impala

I am trying to connect to Cloudera Impala via Mathematica, but so far I have not been able to do so. Has anyone ever done it? I have been able to connect to it via R using the JDBC or ODBC interface ...
10
votes
1answer
266 views

Link ITK with Mathematica

I would like to know if someone has tried to link Mathematica with ITK code (call ITK code in Mathematica)?
3
votes
1answer
110 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 ...
8
votes
1answer
98 views

Launch Front End from .NET MathKernel and return result to .NET

Is it possible to launch a front end and open a notebook from a .NETLink kernel and return a result from the notebook to .NET? In the code below "x" appears in the .NET textbox after 10 seconds but ...
1
vote
1answer
233 views

Running external program from command line

This command works on Windows: ReadList["!" <> "echo hello", String] Assuming the "!" suggests Windows command shell (verified as ...
7
votes
0answers
174 views

Interfacing Red Pitaya board with Mathematica [closed]

I just discovered the Red Pitaya board and borrowed a unit to play during this weekend. Surprisingly I did not find any reference to Mathematica on the Red Pitaya forum, nor did I find any reference ...
8
votes
1answer
162 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 ...
22
votes
3answers
1k views

Clipboard with transparency

After reading this question I have determined that Rasterize[Graphics[Circle[]], "Image", Background -> None] allows you to do ...
37
votes
5answers
12k 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 ...
1
vote
1answer
192 views

Printing problem in our campus lab

We have 12 iMacs in our computer lab at our college. Our students are having problems trying to print (to a black and white printer) their notebooks. Testing one students notebook (about 6 pages with ...
8
votes
1answer
358 views

Exporting 2D & 3D graphics for use in Adobe Illustrator

I have recently (perhaps since Mathematica Version 10?) encountered a change in how PDF images are saved and how they behave after being loaded into Adobe Illustrator (v16.0.4 under Mac OS X 10.10.5). ...
7
votes
0answers
102 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, ...