GitHub For The Real World
  • Home
  • Tools
    • Quarto Installation
    • VS Code Installation
    • Git Installation
  • Course Tasks
  • Unit 1
    • Lesson 1: Intro to GitHub
    • Lesson 2: Creating your GitHub Profile README
    • Lesson 3: Markdown
    • Lesson 4: Additional Profile README Features
    • Lesson 5: Organizing Your Github Repository
  • Unit 2
    • Lesson 1: Intro to VSCode
    • Lesson 2: Intro to Quarto
    • Lesson 3: Git in VSCode
  • Unit 3
    • Lesson 1: Create Your First Website
    • Lesson 2: Hosting Your Website on GitHub Pages
    • Lesson 3: Subpages and Nav Bars
  • Unit 4
    • lesson 1: Using A Custom Domain
    • Lesson 2: Temp Title
  • Bonus Lessons
    • Customizing Website Appearance with CSS
    • Advanced Git
    • Embedding IFrames
    • Quarto Themes
  • About the Authors

On this page

  • Overview
  • Learning Objectives
  • Lesson
    • A Quarto Overview
    • Installing Quarto
    • Using Quarto Extension in VSCode
  • Practice Activity
  • Conclusion
    • FAQ

Lesson 2: Installing Quarto

Overview

This lesson will briefly explain Quarto and go over the steps necessary to create a install Quarto in Visual Studio Code (VScode)

Learning Objectives

  • Students will have a general idea of what quarto is and its uses.

  • Students will be able to download quarto.

  • Students will be able to install quarto.

  • Students will be able to preview quarto documents.

Lesson

A Quarto Overview

Quarto is a dynamic open-source publishing system made to simplify the process of creating easily reproducible reports, articles, research,HTML, and other print and non-print documents. It is built on top of the exceptionally powerful Pandoc converter and uses a language syntax very similar to R markdown and other flavours of markdown.

Unlike R markdown, Quarto is not tied to a specific language, infact it was made to be multi-lingual. As such, it supports Python, Julia, and Observable among others. The benefits of Quarto can be summarized as:

  1. Dynamic Documents: Like R Markdown, Quarto allows you to create dynamic documents where you can embed code, text, and visualizations.

  2. Multilingual Support: Quarto supports multiple programming languages, making it versatile for different types of analysis. It’s not limited to R; you can use Python, Julia, and more.

  3. Interactive Documents: Quarto supports interactive documents with features like interactive graphics and code blocks. The document output can be PDF, EPUB, HTML, DOC, etcetera.

  4. Reproducibility and Collaboration: Quarto emphasizes reproducibility by capturing the code, data, and dependencies needed to reproduce the document’s content. This makes it a powerful way for people to collaborate on projects as everyone can view everything about a report on a single doument.

Installing Quarto

Quarto Download Page

For Windows PC

  • Navigate to the Quarto download page or use this link to access a static download.

  • Click on the large blue link at the top of the page and the download should start.

  • After download completion, click on the downloaded msi file. The setup wizard will start.

  • Click next.

  • If you want all users on your computer to have access to Quarto select the radio button beside Install for all users of this machine, else, change nothing and just click next.

  • Click next.

  • Leave the install path as the default.

  • Click next.

  • The installation will start. Wait for it to complete (Please do not turn of your system)

  • When a message comes up, click on Finish.

Congratulations 🎉😎

You have successfully installed Quarto

For Mac OS

Refer to the video below.

Using Quarto Extension in VSCode

Enabling Quarto Extension in VScode

  • Open vscode and click on the Extensions widget on the left panel of vscode.

  • Search for Quarto and click on the blue install button.

Rendering/Previewing Quarto files

  • Create a quarto file by clicking the file at the top-left in vscode and then selecting New File.. from the drop-down.

  • From the new drop-down, select Quarto Document. A new untitled quarto document will be created with the following content:

---
title: "Untitled"
format: html
---
  • Edit and add content to your quarto file to make it look like this:
---
title: "My First Quarto Code"
format: html
---

### My name is {type your name here}
I just finished installing quarto on **{input the date here}**
  • Click on the preview button on the top-right of vscode. A dialog will pop up.

  • Name your file test.qmd (qmd is the file extension name for a quarto file) and click on save.

  • Click the preview button again. A few things will run in the terminal. A preview panel will open on the right of vscode. The result should resemble the picture below (Except the name and date will be different).

Practice Activity

  • Download and install Quarto.

  • Create a new Quarto (.qmd) file, add the content from above, and preview it.

  • Take a screenshot of your screen (with the preview) and share to your group.

Conclusion

Good job completing this. By now you should:

  • Have quarto installed and should have created a new quarto document.

  • Have a basic understanding of the capabilities and use cases of Quarto.

In future lessons you will utilize Quarto with markdown to create web content. Quarto is a quick way to create a static webpage without having to understand HTML in detail.

FAQ

I cannot access the quarto download. What do I do?

Use a free VPN on your device and change the location to somewhere in the United States. You can also use the static download available at the top of this webpage.

Back to top