Skip to main content
9 votes
Accepted

Connecting Mathematica on Windows to a kernel running on WSL

It turns out that while figuring out the solution is hard (way too little documentation, and what documentation exists dates to around 2006), the solution itself is easy. As such I'm documenting the ...
linkhyrule5's user avatar
7 votes

Remote kernel through SSH

Regarding The Quantum Physicist's answer, there might be a little problem for some macOS users who use macOS as remote machine. If you get the time out error message, it's very likely that the remote ...
webcpu's user avatar
  • 3,202
6 votes
Accepted

MathLink: How to change the default listening IP address?

Use the undocumented LinkHost option, e.g.: LinkCreate[LinkProtocol -> "TCPIP", LinkHost -> "127.0.0.1"] yields: ...
sakra's user avatar
  • 5,210
6 votes
Accepted

Executing local functions remotely

If I understand correctly, you have some functions defined locally that are not defined on the remote machine. When you remote evaluate your expression, which includes these functions, the remote ...
Carl Woll's user avatar
  • 131k
6 votes
Accepted

Direct Import Remote File via SSH without Copying in Windows

Since your know ssh, why not directly use linux commands like Import["!echo `ssh user@host 'cat /home/user/file.txt'`", "String"] You can ...
Acus's user avatar
  • 3,680
5 votes
Accepted

How to set up Wolfram Language cluster with only the command line interface

I was able to get this working and it was simpler than I thought. The Parallel Computing Tools documentation was very helpful (specifically here for manual launching of the remote kernels). Note: I ...
Sean Lynch's user avatar
  • 1,079
5 votes

gridMathematica on cluster with PBS Pro

Setting up Mathematica to work well on a cluster was painful for me. I don't know how to get it working on PBS, but you may find the following general information useful. Do look at the ...
Szabolcs's user avatar
  • 236k
5 votes
Accepted

Remote Raspberry Pi Kernel from 2nd Raspberry Pi Front End

It turns out that remote kernel through SSH was the most useful guide. Setting up the remote Kernels manually was more succsessful compared to using ...
Young's user avatar
  • 7,515
4 votes

Remote Kernel - Error = MLECONNECT

This solution is tested for M11.2 for macOS client and Linux server. Create a password-less ssh login. Generated a public and private ssh key on the local machine (mac) and then copy the public key ...
Karolis's user avatar
  • 1,639
4 votes

Is it possible to recover remote subkernels if Internet connection is lost?

I do not believe this to be possible. I suggest you do not use remote subkernels if your network connection is not stable. Instead, run everything remotely, including the master kernel. It would be ...
Szabolcs's user avatar
  • 236k
4 votes
Accepted

Launching remote kernel--increase timeout time

You can use SetSystemOptions to increase the timeout used upon launching remote kernels: SetSystemOptions["ParallelOptions" -> "MathLinkTimeout" -> 20.]
sakra's user avatar
  • 5,210
4 votes

How can I effectively achieve remote access to Mathematica output?

Let's assume you use Dropbox/iCloud, and one of these services is integrated both with the file system on your local computer, as well as the remote computer doing the computations. I'll assume ...
ktm's user avatar
  • 4,242
3 votes

Mathematica remote kernel on ubuntu

Duplicating the answer from here to make it easier to find. This solution is tested for M11.2 for macOS client and Linux server. Create a password-less ssh login. Generated a public and private ssh ...
Karolis's user avatar
  • 1,639
3 votes

Connecting notebook to remote kernel

Sorry this is not an answer but the text goes too long for the comment. There'a whole bunch of things that could go wrong with remote kernels in my experience. Basically FE starts remote kernel and ...
Pavel Perikov's user avatar
3 votes
Accepted

Tunnel a Mathematica command through SSH

I have figured out a work-around, that requires Mathematica 11.3 or later. In this version, there is a new command, RemoteRun[], that works like Run[] but on a remote server. If anyone knows a way of ...
a20's user avatar
  • 912
3 votes

Remote kernel through SSH

An update for version 13.3; assuming you have already copied your ssh id to the server (if not look e.g. here) ...
LaloGo's user avatar
  • 31
3 votes

Remote kernel through SSH

No need to following any example, Just read MLOpen doc, I tried this: ssh to server, run "MathKernel -wstp -LinkMode Listen -LinkProtocol TCPIP". It prints out "Link created on: 41539@...
Chongkai Zhu's user avatar
3 votes

How to copy some variables from one notebook to another using different kernel?

You could encode data into an Image: ...
Mr.Wizard's user avatar
  • 272k
3 votes
Accepted

How to copy some variables from one notebook to another using different kernel?

As a simple solution, you could use CloudPut, CloudGet and CloudObject. ...
Szabolcs's user avatar
  • 236k
3 votes

Running remote kernel - free frontend license?

You could use Raspberry Pi as your free Mathematica frontend which uses your Mac/Linux as backend/server. (I haven't tried it on Windows) There is a limitation, the version numbers of Mathematica for ...
webcpu's user avatar
  • 3,202
3 votes

Remote Kernel - Error = MLECONNECT

tl;dr If you use macOS and there are spaces in the path to (or name of) the Mathematica app, remove those spaces! I believe that this error is shown when the process started by the Front End (that is ...
Szabolcs's user avatar
  • 236k
3 votes
Accepted

Running Mathematica on a Remote Machine (using frontend and ssh)

I just wanted to post a comment but I don't have enough reputation. I have been discussing this topic in a Wolfram Community post. I shared there my working solution (for the moment, I want to test it ...
edobld's user avatar
  • 66
2 votes

Remote Mathkernel: SSH encountered a networking error while launching kernel Error code = 1

Modified upon this answer I managed to connect to the remote kernels. The client laptop is running Mathematica 11.2 on Windows, and remote kernel Mathematica 11.2 on RHEL 7. Here is what I did: ...
Boson Bear's user avatar
2 votes

Is there any way to change the port used by RemoteConnect?

With the current implementation of RemoteConnect, it seems that this is unfortunately not possible. Port 22 is hardcoded in the Wolfram Library that is used for SSH ...
Domen's user avatar
  • 27.3k
2 votes
Accepted

How to use a remote windows laptop for NetTrain?

Ok, here's a file syncing service solution: Step 1: Get a Dropbox account and make two folders in your dropbox: 'to_run/' and 'finished/'. Step 2: Paste and run this in a notebook on your Windows ...
M.R.'s user avatar
  • 31.6k
2 votes

Execute .nb from command prompt on Windows 10

The NB files can't be used as input files for WolframScript, because they store interactive Wolfram System documents intented for use within the Notebook interface (...
Alexey Popkov's user avatar
2 votes

Direct Import Remote File via SSH without Copying in Windows

I'm in Windows 11. If you are currently on a LAN, then I recommend using this scheme: ...
yode's user avatar
  • 26.8k
1 vote
Accepted

Improving a Remote Wolfram Execution Function

The following ...
George's user avatar
  • 3,145
1 vote

How do I find open RemoteConnect Objects?

Odd that there's no RemoteConnections[] function like there is Processes[], Streams[], ...
b3m2a1's user avatar
  • 46.9k
1 vote

How do I launch a remote kernel on one Win 10 system from another Win 10 sys?

Finally, I've found a way to launch remote kernal in win10 like this: ...
Hallow_Juan's user avatar

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