hlissner / doom-emacs Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python org-babel with :session header #3242
Comments
|
I think add this to my config this may have solved it for me |
|
I have the same error. I've tried @flowersw proposal and still got the same result. Is this something related to Additionally, it works in other org-files and in vanila emacs. Any clue if it is a python or org issue? Update: I fixed adding |
|
@wangkev Is this still an issue? I cannot reproduce it. Please make sure you are on the latest version of Doom and on Emacs 27.1+, not 27.0.50 or earlier. To change the interpreter python blocks in org-mode use change |
|
I haven't tried to use the session tag since raising the issue, but re-tested just now and do not have the same error anymore (granted on a different machine). Using emacs 27.1 and doom 2.0.9. Happy to close this issue, or can leave it open for others who appear to have the same issue? |
|
It must've been fixed at some point then. Thanks for letting me know! |
What did you expect to happen?
Have
org-babelwithpythonand:sessionheader work and output result. Seems like the defaultorg-babelpythonscript that's run with the:sessionheader doesn't always get interpreted properly.What actually happened?
Had an indentation error (see below), and nothing was output.
Additional details:
Confirmed
org-babelworks as expected in vanilla Emacs and withdoom, but without theorgmodule. Also this seems to only be an issue when I include:sessionheader. Sometimes if I execute theorg-babelblock again, it will work (i.e.org-babeloutputs, and no indentation/parsing issue in*Python*buffer).Best resources I could find so far:
config.el(although have tried with the below excluded too):*Python*buffer:Then after a few tries, the python code will be interpreted fine:
Steps to reproduce:
org-babelworks in vanilla emacs. Minimal repro:2a. In scratch buffer, change to
org-mode(M-x org-mode)2b. Paste below two source blocks:
2c. Execute blocks and confirm output:
*Python*buffer.System information:
``` emacs version 27.0.91 features NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS PDUMPER GMP build May 20, 2020 buildopts (--enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-mac/HEAD-b71b8b1/share/info/emacs --prefix=/usr/local/Cellar/emacs-mac/HEAD-b71b8b1 --with-mac --enable-mac-app=/usr/local/Cellar/emacs-mac/HEAD-b71b8b1 --with-gnutls --with-modules) windowsys mac daemonp server-running doom version 2.0.9 build grafted, HEAD -> develop, origin/develop, origin/HEAD 94fc6f7 2020-05-20 01:10:15 -0400 dir ~/.dotfiles/emacs/.config/doom/ system type darwin config x86_64-apple-darwin18.7.0 shell /bin/zsh uname Darwin 18.7.0 Darwin Kernel Version 18.7.0: Mon Feb 10 21:08:45 PST 2020; root:xnu-4903.278.28~1/RELEASE_X86_64 x86_64 path (~/.virtualenvs/py3/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Library/TeX/texbin ~/.config/emacs/bin) config envfile envvar-file elc-files 0 modules (:completion company ivy :ui deft doom doom-dashboard fill-column hl-todo minimap modeline ophints (popup +defaults) vc-gutter vi-tilde-fringe workspaces :editor (evil +everywhere) file-templates fold snippets :emacs dired electric ibuffer undo vc :checkers syntax spell :tools (eval +overlay) lookup magit :lang emacs-lisp markdown (org +roam) (python +lsp) sh :config literate (default +bindings +smartparens)) packages (n/a) unpin (n/a) elpa (n/a) ```The text was updated successfully, but these errors were encountered: