Closed jpmorr closed 9 months ago
Using the Windows Store version of Python has lots of problems so should generally be avoided. In order to correctly bind to the Conda environment you want to use the "Python: Select Interpreter" command and then choose that Conda environment. After doing this the Quarto VS Code extension will automatically set QUARTO_PYTHON
to this version before running commands in the terminal.
Thanks - you are correct about using the "Python: Select Interpreter" to solve the issue. Although, I'm not using the python version from the microsoft store, just plain anaconda install like other machines.
I have a revealjs presentation that I've started to create with quarto and in a few slides I have some python code that I want to run, however, when I hit the preview button in VSCode, I get the following warning message:
I believe this is a problem with the VS code extension rather than quarto-cli as I can render the document from any powershell terminal by using
quarto preview index.qmd
and the rendered slides open in a browser window.If I run quarto check from powershell I get the following output:
Running
quarto check
from the vscode terminal gives the following output:I've tried setting the
QUARTO_PYTHON
environmental variable in the_environment
file to tell quarto which python jupyter to use but that doesn't help.This is a new problem as I've previously been able to do this without any problem, but I think some recent update may have broken something.
May be related to #341 but this isn't installed from conda, but uses a conda environment.
Oh, I'm running extension version v1.109.0 on windows 10.