39 votes

Web Browsing Automation with Mathematica

Here is a package which does what you want: https://github.com/arnoudbuzing/webunit Clone the repository from github, and place the WebUnit folder under ...
user avatar
38 votes
Accepted

Exchanging numpy arrays between Python and Mathematica?

You can use the binary format to speed up the process: python side import numpy as np array = np.random.rand(100000000); array.astype('float32').tofile('np.dat') ...
user avatar
36 votes
Accepted

Running Mathematica on Docker

Updated answer with Dockerfile After the release of wolfram engine I thought it is a good time to revisit this old answer and refine it a bit. First install docker on your machine. Follow docker ...
user avatar
  • 14.4k
35 votes
Accepted

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

Get all the files here. .NET Mathematica Word Library You will need to use a Microsoft library to open word documents. In a language such as .Net it is very easy; just open Visual Studio, reference ...
user avatar
  • 1,412
34 votes

How can I use the Python library networkx from Mathematica?

Mathematica 12.0 brings two new features that make this easier to do than it was before: ExternalFunction Wolfram Client for Python Below we implement a function <...
user avatar
  • 227k
26 votes
Accepted

3D rigid body physics engine

Since this answer was originally posted, the Blender software package has undergone significant revision causing the Python scripts to break. I have modified the scripts so that they should work from ...
user avatar
  • 16k
22 votes
Accepted

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

The Run command returns the exit code of the program being run. In your case, the program is "!ls" which probably doesn't exist on your system (If you try ...
user avatar
  • 18.9k
20 votes

Is there a way to run Python from within Mathematica?

Building off of @M.R.'s idea, it is possible to set up an interactive python shell using StartProcess as opposed to RunProcess, ...
user avatar
18 votes
Accepted

Transfer graphics from Mathematica to Word without loss of quality

If you need to achieve the best possible quality I strongly recommend against using the Clipboard for transferring graphics. Under Windows the clipboard will contain a Windows Metafile generated with ...
user avatar
18 votes
Accepted

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

I consider this question pretty much answered by @MarcoB, as follows: Mathematica 10 apparently forces rasterization by default when exporting 3D graphics to PDF, even when one adds the option ...
17 votes

Is there a way to run Python from within Mathematica?

Here is a more robust solution using Process: ...
user avatar
  • 30.6k
16 votes

Minimal effort method for integrating C++ functions into Mathematica

In terms of loading C++ functions, I would strongly suggest LibraryLink. It is a great tool except that it requires you to write sometimes intimidating C code. To make LibraryLink easier to use, I ...
user avatar
  • 1,136
16 votes
Accepted

How can I conveniently call igraph from Mathematica?

To overcome some limitations of RLink with regard to performance and parallelizability, I also created a LibraryLink based interface to igraph: IGraph/M Since the original release, IGraph/M has ...
user avatar
  • 227k
15 votes
Accepted

Is there a way to run Python from within Mathematica?

Since 11.2 Mathematica has supported ExternalEvaluate and since 11.3 this functionality has been conveniently available simply by beginning an input cell with ...
user avatar
  • 12.7k
14 votes

Minimal effort method for integrating C++ functions into Mathematica

There is a package called LTemplate that automates writing some of the boilerplate code for LibraryLink: How to simplify writing LibraryLink code? I consider this less effort than writing standard ...
user avatar
  • 227k
14 votes

Exchanging numpy arrays between Python and Mathematica?

Here is a template to read a numpy binary ".npy" file created simply by numpy.save(filename,array) this file format has the array structure encoded as a python ...
user avatar
  • 38.4k
14 votes

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

.fits method One possible way is to use the .fits format... Export["~/Dropbox/tensor.fits", tensor] ...
user avatar
14 votes
Accepted

WXF encoder library for C++

We have developed a C library to support BinarySerialize/BinaryDeserialize. I confirm that we plan to open-source it as well. ...
user avatar
  • 371
14 votes
Accepted

Reusing PARDISO symbolic factorization

No, this is not built-in and I have been waiting quite long for such a feature. PardisoLink With the help of Szabolcs's package "LTemplate`" I had written such an interface for the Intel MKL ...
user avatar
12 votes
Accepted

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

MATLink 1.x is based on the MATLAB Engine interface, which sets its limitations and possibilities. What you are asking for is possible on Windows, but not on Mac or Linux. By default MATLink will ...
user avatar
  • 227k
12 votes

Call a Haskell DLL from Mathematica

The problem lies in the declaration of the DLL function acumSumR. It is declared to return a double[] but the Haskell return ...
user avatar
  • 67.3k
11 votes

How can I trans-compile Mathematica into another language?

Mathematica has a very large number of builtin functions, most of which would be part of libraries in other languages. Many of these functions are next to impossible to implement in a compatible way, ...
11 votes
Accepted

Printing problem in our campus lab

I don't think that this is a problem with Mathematica, but rather with a combination of (possibly) HP printers and PostScript printer drivers on Macs. The error you see is a PostScript error; see ...
user avatar
  • 61.6k
11 votes

How can I get OSX split screen to work?

Update: Mathematica 12.0 now supports this. You can't. This feature only works with certain programs and as of version 10.4 Mathematica is not one of them. Maybe the coming Mac front end ...
user avatar
  • 227k
11 votes
Accepted

Corresponding built-in types for Python

I think you can find what you're looking for here:
user avatar
  • 4,171
10 votes

Step-by-step instruction to Install C Compiler

Even though it's quite late to reply, but I need to point out that the culprit is the white space between Program Files. If you set the installing path without ...
user avatar
  • 2,712
10 votes
Accepted

Why doesn't Import work with XOWA offline Wikipedia database?

This is an issue with XOWA. The HTTP Server was rewritten in v2.7.2 to handle POSTs and other features. However, it looks like it crashes on your request. I'll look at fixing this for v2.8.2. I'll ...
user avatar
  • 116
10 votes
Accepted

What is the correct path to add a camera driver?

After 2 years of research and posting this question in other sites, the answer is that although Mathematica (Windows) detects the Camera device, only imaging devices using the Windows video image ...
user avatar
9 votes

Write C/C++ programs calling Mathematica functions

The other answers ignore that you are asking about C or C++ (not C# or Java!) Mathematica can be called from C (or C++) through the MathLink interface (recently renamed to WSTP). To learn it, I ...
user avatar
  • 227k
9 votes

How to use Mathematica functions in Python programs?

Better late than never, but the error in the python script appears to be due to the format of the current packet. Using your routine (with k = kernel): ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible