Connecting Spyder to Remote Jupyter Notebook in a Docker Container

会有一股神秘感。 提交于 2019-12-06 00:39:42

This isn't a solution so much as a work around, but sshfs might be of help

Use sshfs to mount the remote machine's home directory on a local directory, then your local copy of Spyder can edit the file as if it were a local file.

sshfs remotehost.com:/home/user/ ./remote-host/

It typically takes about half a second to upload the changes to an AWS host when you I hit save in Spyder, which is an acceptable delay for me. When it's time to run the code, ssh into the remote machine, and run the code from an IPython shell. It's not elegant, but it does work.

I'm not expecting this to be the best answer, but maybe you can use it as a stopgap solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!