You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.2 KiB
2.2 KiB
Python
Python is an interpreted high-level general-purpose programming language1.
Setup
Config
Add support for python3
1, including dap
and lsp
integration. The built-in Emacs mode python-mode
3 handles the rest of the integration.
(use-package python-mode :hook (python-mode . lsp-deferred) :config (require 'dap-python) (add-to-list 'org-src-lang-modes '("python" . python)) (add-to-list 'org-structure-template-alist '("py" . "src python")) (org-babel-do-load-languages 'org-babel-load-languages '((python . t))) :custom (python-shell-interpreter "python3") ;; Required if "python" is not python 3. (org-babel-python-command "python3") ;; Same as above. (dap-python-executable "python3") ;; Same as above. (lsp-pyls-server-command "pylsp") (dap-python-debugger 'debugpy))