   
   ;;(add-hook 'python-mode ('before-save-hook 'spacemacs/python-remove-unused-imports))
 
-  (setq pylookup-dir "")
-  (setq-default dotspacemacs-configuration-layers
-                '((python :variables python-backend 'anaconda)))
-  (setq-default dotspacemacs-configuration-layers
-                '((python :variables python-test-runner 'pytest)))
-  (setq-default dotspacemacs-configuration-layers
-                '((python :variables python-formatter 'yapf)))
-  (setq-default dotspacemacs-configuration-layers
-                '((python :variables python-sort-imports-on-save t)))
-  (setq-default dotspacemacs-configuration-layers
-                '((python :variables python-format-on-save t)))
-
+  ;;(setq pylookup-dir "")
+  ;; (setq-default dotspacemacs-configuration-layers
+  ;;               '((python :variables python-backend 'anaconda)))
+  ;; (setq-default dotspacemacs-configuration-layers
+  ;;               '((python :variables python-test-runner 'pytest)))
+  ;; (setq-default dotspacemacs-configuration-layers
+  ;;               '((python :variables python-formatter 'yapf)))
+  ;; (setq-default dotspacemacs-configuration-layers
+  ;;               '((python :variables python-sort-imports-on-save t)))
+  ;; (setq-default dotspacemacs-configuration-layers
+  ;;               '((python :variables python-format-on-save t)))
+  (setq lsp-pyls-server-command '/usr/local/bin/pyls)
+  
 
 
   ;;(setq pylookup-html-locations (list "http://docs.python.org" "http://matplotlib.org"))

  (add-hook 'python-mode-hook
            ;;(add-hook 'before-save-hook 'spacemacs/python-remove-unused-imports)
            (lambda()
            (anaconda-mode)
            (anaconda-eldoc-mode)
            (yapf-mode)
            (importmagic-mode)
            ))

  ;;(eval-after-load 'python


  ;; flycheck
  ;; use American English as ispell default dictionary
  ;;(ispell-change-dictionary "american" t)

  ;; switch window
  ;; (setq-default switch-window-shortcut-style 'alphabet)
