-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error E79 when running QuartoPreview and wrong Python being used #143
Comments
Neovim's integrated terminal, which is used in to run |
You can add |
Does the plugin require r to be installed even if I'm not using it in my qmd file? |
No, quarto-cli can be installed independently of R (https://quarto.org/) |
I'm still getting the error after uninstalling conda:
I can confirm that my custom environment is activated when I start nvim. |
Just to be clear this is not by custom environment. How do I get the plugin to use it? |
Does |
And do you have jupyter in your environment? |
Yes to both questions. I have been using the custom environment with quarto in vscode. I guess as a work around I can launch quarto preview from the terminal and use the plugin that way but it would be nice to have the neovim command working. |
Is there a difference between |
Yes. Outside of nvim the command locates my venv python. Within neovim it locates my default python. In both cases the python environment was first activated. I think this might be the issue. |
I can confirm that if I open a neovim terminal, activate the environment and run quarto preview, it works. |
right, so in this case, after disabling conda, it is the binaries from |
I'll have to think about how that can be done. The method suggested in the reddit post of using $SHLVL doesn't work. In my case SHLVL is 1 both within and without nvim. |
For example, the proposed solution in the reddit post of using |
oh |
Also I'm using fish not bash. |
I just compared my $PATH variable within and without nvim, with the virtual environment activated in both cases. It actually doesn't add on the |
Weirdly, if I run |
I have two issues. I have setup my quarto configuration by copying quarto.lua from the kickstarter configuration. When I run QuartoPreview I get the following error:
The other issue is that the plugin appears to be using the wrong python environment. I have a custom environment in
venv
that I activate before starting nvim. But when I quite nvim I get a bunch of error messages like this:This is the wrong python environment but I cannot figure out how to get it to use the right one.
EDIT:
I should mention that I am on Mac.
The text was updated successfully, but these errors were encountered: