19
votes
Accepted
remote kernel through SSH
Here's a solution that works quite well with me and a colleague of mine in my research group.
I assume you have Mathematica installed on both your local and remote machine. The command ...
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 ...
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:
...
6
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 ...
5
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 ...
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 ...
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 ...
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 ...
5
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 ...
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 ...
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 ...
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 ...
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.]
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 ...
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 ...
3
votes
How to connect to EC2?
sorry for answering so late but i just saw the question. Actually it is quite simple.
Just go to evaluation>kernel configuration options
add a new kernel
and fill like this:
replacing path/to/your/...
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 ...
3
votes
How to copy some variables from one notebook to another using different kernel?
You could encode data into an Image:
...
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.
...
3
votes
Accepted
How to let processes run after closing ssh connection
If this is how you are already doing things, let me know. But for me, running on a remote kernel means running in batch mode; no method of accessing a GUI, or using an interactive prompt is as ...
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 ...
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 ...
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 ...
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:
...
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 ...
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 (...
1
vote
Accepted
1
vote
How do I find open RemoteConnect Objects?
Odd that there's no RemoteConnections[] function like there is Processes[], Streams[], ...
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:
...
1
vote
ParallelTable fail to distribute computation to local kernels and remote kernels
The method supportted by remote kernel through ssh is used to compute through remote kernel only and it's the usual way we need. I misunderstood it and the situation asked in the question is the right ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
remote-access × 139parallelization × 31
kernel × 30
kernel-startup × 20
front-end × 15
mathlink-or-wstp × 14
windows × 10
high-performance-clusters × 10
linux × 6
networking × 6
raspberry-pi × 5
bugs × 4
export × 3
import × 3
run × 3
numerical-integration × 2
performance-tuning × 2
notebooks × 2
pdf-format × 2
java × 2
command-line × 2
installation × 2
cudalink × 2
webmathematica × 2
configuration × 2