Install the following using your preferred method:
pip3 install rope jedi importmagic autopep8 flake8
In Emacs:
M-x package-install RET elpy RET
M-x package-install RET exec-path-from-shell RET
M-x package-install RET pyenv RET
M-x package-install RET anaconda-mode RET
Edit .emacs as following:
(elpy-enable)
(when (memq window-system '(mac ns x))
(exec-path-from-shell-initialize))
(add-hook 'python-mode-hook 'anaconda-mode)
(setenv "WORKON_HOME" "/anaconda3/envs")
(pyvenv-mode 1)
Restart your emacs and enjoy using the best Python IDE
Use M-x pyvenv-workon to switch between anaconda environments
Sunday, May 5, 2019
Monday, April 8, 2019
Mosh
Mosh is similar to SSH, remote terminal application but it allows roaming, and supports intermittent connectivity. Its usage is similar to SSH. It has to be installed both on the server and client.
sudo yum install mosh
sudo firewall-cmd --zone=public --permanent --add-port=60000-61000/udp
sudo firewall-cmd --reload
On RedHat/CentOS remote server:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmsudo yum install mosh
sudo firewall-cmd --zone=public --permanent --add-port=60000-61000/udp
sudo firewall-cmd --reload
Azure:
If you're using Azure, make sure to allow the inbound port:On local Mac:
brew install moshSunday, April 7, 2019
How to recover a shell after a disconnection?
tmux
. I start tmux, start the operation and go on my way. If I return and find the connection has been broken, all I have to do is reconnect and type tmux attach
For installing tmux on Mac:
brew install tmux
tmux in the top image is running with vtop on the top pane and PM2 on the bottom.
Here is the cheatsheet for tmux:
Subscribe to:
Posts (Atom)