Message Boards Message Boards

2
|
3432 Views
|
0 Replies
|
2 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to load packages on local computer when using remote kernels

Posted 10 years ago
I usually works remotely using kernels on our hpc and front-end on my local laptop. This enable me do relatively large computation within my laptop. But there is a problem when come across packages. Since I manage all the packages on my local computer, I can't just use Get["mypack.m"] when I use remote kernel, instead, I have to copy all the packages to my remote machine before Get. However, I'm constantly developing the packages and copying them back and forth between local and remote computer is quiet tedious. Are there simpler ways to deal with it, other than copying everytime? For example, can we excute the package as a notebook so that it would load to the remote kernel?

Note this is corss posted on stackexchange http://mathematica.stackexchange.com/q/34966/1364

Update:

It has been answered in the same post. We can setup a ftp server on local laptop and use Get on remote machaine to get the package. Or we can simply use UsingFrontEnd@NotebookEvaluate["path/to/local/mypack.m"] to evaluate the package and it will be sent to remote kernel.
POSTED BY: xslittlegrass *
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract