spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.32k stars 1.61k forks source link

How can I edit files on a remote computer from a local spyder with ssh? #20855

Open ryohei22 opened 1 year ago

ryohei22 commented 1 year ago

I connected to a remote kernel with ssh by following this. However, I wasn't able to find any way to edit files on the remote server with my local spyder. For example, the file tab in my local spyder doesn't show files on the remote. Is it possible to edit files on the remote with my local spyder? Also, when I connected to the remote server, some files were downloaded from the remote automatically. Can I avoid this somehow?

If you need other information, please let me know. I appreciate your help in advance.

dalthviz commented 1 year ago

Hi @ryohei22 thank you for the feedback! I think Spyder doesn't have any functionality that could support this yet, pinging @ccordoba12 which could expand on this and probably link related issues.

Also, not sure of your OS but for example. to have access to your remote files on Windows, for the moment you will need to use something like https://github.com/winfsp/sshfs-win

ryohei22 commented 1 year ago

@dalthviz Thank you for your reply. I understand that. I'm using macOS mainly, but I appreciate the information.

dalthviz commented 1 year ago

Oh I see, after a quick search seems like maybe this could help in case the idea of mounting a remote drive with sshfs on macOS sounds interesting to you: https://github.com/osxfuse/osxfuse/wiki/SSHFS and https://osxfuse.github.io/

I haven't tried it myself but let us know if the info above helps!