Skip to content
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

Trouble with quarto-preview, and also with python code blocks #18

Open
claytharrison opened this issue Mar 14, 2023 · 3 comments
Open

Comments

@claytharrison
Copy link

Hi, I've just set up quarto-mode in my Doom Emacs config by including (package! quarto-mode) and the other dependencies in my packages.el, and then (use-package! quarto-mode) in my config.el, as I believe is usual for Doom packages.

It seems to have somewhat worked, as polymode seems to recognize different languages when I move my cursor into the YAML header, or into a code block (since the Major mode in the bottom corner changes accordingly), but I'm having a hard time actually getting anything done. When I do M-x quarto-preview, I get a quarto preview buffer but nothing shows up:
image

It becomes difficult to troubleshoot because I'm not even sure how this is supposed to look. I tried running M-x quarto-menu to see if I got any more options but that just gives me the message command-execute: quarto-menu must be bound to an event with parameters.

My next problem is that, when I try and send code blocks to be evaluated using C-c C-c, it works just fine with R/ESS, but with python code, the entire buffer gets sent to the Inferior Python process, where the document header immediately causes a syntax error.
image

Is there anything wrong with how I've set this up? Do I need to add any use-package! lines for the dependencies in my config.el? I'm new to Emacs so I really appreciate the help. Thank you!

@cscheid
Copy link
Contributor

cscheid commented Mar 14, 2023

I don't know anything about Doom Emacs, so unfortunately I'm going to be of little help here.

@claytharrison
Copy link
Author

claytharrison commented Mar 14, 2023

I was stupid, all I've done is forgotten to actually install Quarto itself before adding the Emacs mode. quarto-preview works fine now, though I still can't send individual Python chunks to the interpreter like I can with R. Is that something that should be functional?

@cscheid
Copy link
Contributor

cscheid commented Mar 14, 2023

That would have to be someone else's PR to solve; I no longer use Emacs on a day-to-day basis so I can't help there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants