14 Installing and Setting Up Quarto
Quarto itself is a standalone piece of software that needs to be downloaded and installed.
https://quarto.org/docs/download/
It’s recommended to choose the ‘current’ version for your operating system.
This is different to rmarkdown, which was just an R package that could be installed without requiring the use of a separate installer.
If you are having difficulty getting your organisation to approve Quarto but they are more flexible on R package installs, consider trying out Rmarkdown instead to begin demonstrating the value of these code-based document engines to them. Your rmarkdown skills will be very transferrable to quarto, and rmarkdown does actually support Python!.
You may then want to check that it is working correctly, though this is an optional step.
Once installed, open up a command prompt.
Run the command quarto check
You may see some warnings or error messages; if they relate to Python, don’t worry too much, as this will just be looking at the packages with the default environment selected. When running quarto commands within VSCode, we will be selecting a specific environment that will contain all of the required packages.
14.1 VSCode Setup
Within VSCode, we will want to install the Quarto extension.
In VSCode, choose ‘extensions’ from the sidebar.
Search the extension marketplace for ‘Quarto’
Choose the Quarto extension that shows up and install it.
Once installed, quarto documents will automatically show a ‘preview’ button at the top right.
This will not show up for other document types like .py files or .ipynb files.
The preview button will automatically open a preview server in either your default web browser or within vscode, so you can see how your document is looking as you work on it and iteratively update it. We’ll talk more about the details of this preview later in the document.