Basically, this is a duplicate of this question. Reproducing the proposed behavior with spacemacs, I changed my user-init to:
(defun dotspacemacs/user-init ()
(setenv "WORKON_HOME" "/home/<username>/.local/bin/anaconda3/envs")
After reloading my .spacemacs file with SPC f e R, I'm immediately able to use , V w and select environments from my ...
Referencing this issue from the elpy package, a solution to your problem may be adding the --simple-prompt and --pprint arguments to the python-shell-interpreter-args variable, like so:
(setq python-shell-interpreter-args "--simple-prompt --pprint")
The default prompt display for IPython doesn't play nicely with how the Emacs terminal displays it, which is ...
I just went through a similar ordeal trying to bind a key in ess-mode with spacemacs. Assuming you're using evil-mode, I think the following will work:
(evil-define-key 'insert python-mode (kbd "M-r") 'replace-string)
I don't know anything about how Spacemacs works, but the attempts with
global-set-key or evil-insert-state-map aren't supposed to work,
because the local keymaps take precedence!
I think it should work to set it in the anaconda-mode-map. So you
can modify the my-python-mode-config function to call (define-key anaconda-mode-map (kbd "M-r") 'replace-string) ...