Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr-ressources
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Learning Lab
mooc-rr-ressources
Commits
52d79842
Commit
52d79842
authored
Aug 25, 2018
by
Konrad Hinsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of Python-related warnings
parent
04a7d392
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
init.el
module2/ressources/rr_org/init.el
+3
-1
init.org
module2/ressources/rr_org/init.org
+7
-1
No files found.
module2/ressources/rr_org/init.el
View file @
52d79842
...
@@ -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
)
module2/ressources/rr_org/init.org
View file @
52d79842
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment