~estraw/.emacs.d

ref: b94579891f92259686fe4b3eacba963ecb9f7cc0 .emacs.d/modules/module-lang-python.el -rw-r--r-- 524 bytes
b9457989Evan Straw Do not get EIN from MELPA (packaged in private Guix channel) 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(use-package ein
  :mode ("\\.ipynb\\'" . ein:ipynb-mode)
  :commands (ein:run))

(use-package python
  :hook (python-mode . lsp)
  :mode ("\\.py\\'" . python-mode)
  :config (setq python-shell-interpreter "python3"))

;;(setq python-shell-interpreter "/usr/bin/python3")

(use-package pyvenv
  :commands (pyvenv-activate
	     pyvenv-workon))

;;(add-hook 'ein:notebook-mode-hook
;;	  (lambda ()
;;	    (auto-fill-mode -1)
;;	    (local-set-key (kbd "C-c C-d") (ein:worksheet-delete-cell))))

(provide 'module-lang-python)