title: Spyder: How to edit a python script locally and execute it on a remote kernel?
body: <p>i am using Spyder 2.3.1 under Windows 7 and have a running iPython 2.3 Kernel on a Rasperry Pi RASPBIAN Linux OS.</p>
  
  <p>I can connect to an external kernel, using a .json file and this tutorial:
  <a href="https://pythonhosted.org/spyder/ipythonconsole.html">Remote ipython console</a></p>
  
  <p>But what now? If I "run" a script (F5), then the kernel tries to exectue the script like:</p>
  
  <pre><code>%run "C:\test.py"
  </code></pre>
  
  <p>ERROR: File <code>u'C:\\test.py'</code> not found.</p>
  
  <p>This comes back with an error, ofc, because the script lays on my machine under c: and not on the remote machine/raspberry pi. How to I tell Spyder to somehow copy first the script to the remote machine and execute it there?</p>
  
  <p>If I check the "this is a remote kernel" checkbox, I cannot connect to the existing kernel anymore. What does that box mean? Will it copy the script via SSH to the remote machine before execution?
  If I enter the SSH login information, I get an "It seems the kernel died unexpectedly" error.</p>