From 52d79842f8bc41644b2c4c201d2c381ca3cc60c7 Mon Sep 17 00:00:00 2001 From: Konrad Hinsen Date: Sat, 25 Aug 2018 12:00:31 +0200 Subject: [PATCH] Get rid of Python-related warnings --- module2/ressources/rr_org/init.el | 4 +++- module2/ressources/rr_org/init.org | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/module2/ressources/rr_org/init.el b/module2/ressources/rr_org/init.el index 01b7586..b31ada9 100644 --- a/module2/ressources/rr_org/init.el +++ b/module2/ressources/rr_org/init.el @@ -13,7 +13,7 @@ (setq org-babel-python-command (if (memq system-type '(windows-nt ms-dos)) "Python" - "python3")) + "python3 -q")) ;; If the Python and R executables are on your system's search path, ;; you should not have to modify anything here. If Emacs does not find @@ -257,3 +257,5 @@ Entered on %U (add-hook 'org-babel-after-execute-hook 'org-display-inline-images) (add-hook 'org-mode-hook 'org-display-inline-images) (add-hook 'org-mode-hook 'org-babel-result-hide-all) + +(setq python-shell-completion-native-enable nil) diff --git a/module2/ressources/rr_org/init.org b/module2/ressources/rr_org/init.org index 60c3c6d..cf259c1 100644 --- a/module2/ressources/rr_org/init.org +++ b/module2/ressources/rr_org/init.org @@ -36,7 +36,7 @@ document, simply =M-x org-babel-tangle=. (setq org-babel-python-command (if (memq system-type '(windows-nt ms-dos)) "Python" - "python3")) + "python3 -q")) ;; If the Python and R executables are on your system's search path, ;; you should not have to modify anything here. If Emacs does not find @@ -431,3 +431,9 @@ To use this type