change python config, add jupyter and ein

This commit is contained in:
2024-05-05 20:36:39 +02:00
parent b18d02d8d5
commit 8b80ceda39
168 changed files with 177127 additions and 46 deletions

View File

@@ -3,6 +3,9 @@
;;; Commentary:
;; Syntax checking configurations
;; - flymake built-in
;; - flycheck
;; Requirements:
;; - flycheck https://melpa.org/#/flycheck https://github.com/flycheck/flycheck
@@ -15,22 +18,23 @@
;; https://melpa.org/#/flycheck-pos-tip require pos-tip
;;; Code:
;; do not load directly with e.g. (global-flycheck-mode) or via
;; after-init-hook while loading the init because flycheck will freeze
;; for a short while. Therefore better defer loading.
;;(require 'flycheck (concat config-dir "lisp/flycheck/flycheck.el"))
(use-package flycheck
:defer 2
:init
(setq flycheck-mode-line-prefix "F") ;; \u24BB \u01D4D5 \u2708 f ;; other flycheck settings see syntax-checking-settings.el
(setq flycheck-mode-line '(:eval (concat (flycheck-mode-line-status-text) " ")))
:config
(setq-default flycheck-disabled-checkers '(python-flake8)) ;; disable the python-flake8 checker. This will make the next checker which is python-pylint to be used.
(setq flycheck-check-syntax-automatically '(save mode-enabled)) ;; flycheck only while saving, default is (save idle-change new-line mode-enabled)
;; flycheck-mode-line-prefix see general-settings-post.el
(setq flycheck-emacs-lisp-load-path 'inherit)
;;(add-hook 'after-init-hook #'global-flycheck-mode) ;; deactivated bc of defer
(global-flycheck-mode))
;; (use-package flycheck
;; :defer 2
;; :init
;; (setq flycheck-mode-line-prefix "F") ;; \u24BB \u01D4D5 \u2708 f ;; other flycheck settings see syntax-checking-settings.el
;; (setq flycheck-mode-line '(:eval (concat (flycheck-mode-line-status-text) " ")))
;; :config
;; (setq-default flycheck-disabled-checkers '(python-flake8)) ;; disable the python-flake8 checker. This will make the next checker which is python-pylint to be used.
;; (setq flycheck-check-syntax-automatically '(save mode-enabled)) ;; flycheck only while saving, default is (save idle-change new-line mode-enabled)
;; ;; flycheck-mode-line-prefix see general-settings-post.el
;; (setq flycheck-emacs-lisp-load-path 'inherit)
;; ;;(add-hook 'after-init-hook #'global-flycheck-mode) ;; deactivated bc of defer
;; (global-flycheck-mode))
;; flycheck also has tooltips
;; flycheck-pos-tip shows errors under point in pos-tip popups.