Commit 52d79842 authored by Konrad Hinsen's avatar Konrad Hinsen

Get rid of Python-related warnings

parent 04a7d392
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
(setq org-babel-python-command (setq org-babel-python-command
(if (memq system-type '(windows-nt ms-dos)) (if (memq system-type '(windows-nt ms-dos))
"Python" "Python"
"python3")) "python3 -q"))
;; If the Python and R executables are on your system's search path, ;; 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 ;; you should not have to modify anything here. If Emacs does not find
...@@ -257,3 +257,5 @@ Entered on %U ...@@ -257,3 +257,5 @@ Entered on %U
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images) (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-display-inline-images)
(add-hook 'org-mode-hook 'org-babel-result-hide-all) (add-hook 'org-mode-hook 'org-babel-result-hide-all)
(setq python-shell-completion-native-enable nil)
...@@ -36,7 +36,7 @@ document, simply =M-x org-babel-tangle=. ...@@ -36,7 +36,7 @@ document, simply =M-x org-babel-tangle=.
(setq org-babel-python-command (setq org-babel-python-command
(if (memq system-type '(windows-nt ms-dos)) (if (memq system-type '(windows-nt ms-dos))
"Python" "Python"
"python3")) "python3 -q"))
;; If the Python and R executables are on your system's search path, ;; 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 ;; you should not have to modify anything here. If Emacs does not find
...@@ -431,3 +431,9 @@ To use this type <B and then TAB. This comes with a session argument ...@@ -431,3 +431,9 @@ To use this type <B and then TAB. This comes with a session argument
(add-hook 'org-mode-hook 'org-display-inline-images) (add-hook 'org-mode-hook 'org-display-inline-images)
(add-hook 'org-mode-hook 'org-babel-result-hide-all) (add-hook 'org-mode-hook 'org-babel-result-hide-all)
#+end_src #+end_src
** Optimizing Python execution
*** Don't use readline completion
This often fails, yielding an ugly warning, and isn't of any use in Org-mode anyway
#+begin_src emacs-lisp :tangle init.el
(setq python-shell-completion-native-enable nil)
#+end_src
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment