Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best editor for remote python files

Tags:

python

editor

Most of my data and code are on remote server. I mostly use vim for writing python codes. But, I was wondering if there would be any way to remote access and execute codes on a server from a GUI? GUI comes in handy when I have to plot charts.

I am aware of ipython notebooks and pycharm remote access. ipython/jupyter notebooks have a tendency to get stuck during large computations. And for PyCharm we still need to copy codes to local and use a remote interpreter.

What are the tools that are usually used?

Any help would be appreciated.

Thank You

like image 838
user2948166 Avatar asked Mar 10 '16 18:03

user2948166


2 Answers

You can edit remote files directly using PyCharm.

There are also many plugins for popular IDEs that providing sFTP support. For example ftp-simple for VS code or ftp-sync.

Finally, you can mount remote folder:

# issue all these cmds on local machine
sudo apt-get install sshfs 
sudo adduser <username> fuse

mkdir ~/remoteserv    
sshfs -o idmap=user <username>@<ipaddress>:/remotepath ~/remoteserv

See also rsync

like image 190
Vasin Yuriy Avatar answered Oct 01 '22 22:10

Vasin Yuriy


What OS do you use? If you use Windows, you can use WinSCP to view the files and edit them in your computer with any text editor you like. If you use Linux, you can access your files via remote SSH and open them with your text editor.

like image 41
lovesmiles07 Avatar answered Oct 01 '22 22:10

lovesmiles07