Skip to content

mcanouil/quarto-wizard

Repository files navigation

Quarto Wizard A cartoon-style illustration of a dog dressed as a wizard, holding a glowing wand. The dog is wearing a pointed hat and a robe with red accents, set against a background filled with magical symbols.

GitHub Release Visual Studio Marketplace Downloads Open VSX Downloads GitHub Downloads (all assets, all releases)

Overview

Quarto Wizard is a Visual Studio Code extension that helps you manage your Quarto projects.
It allows you to easily install Quarto extensions directly from the Quarto Extensions listing repository.
This extension provides a user-friendly interface to browse, select, and install Quarto extensions, enhancing your Quarto development experience.
Additionally, it offers a set of commands to create new Quarto documents that you can use as a starting point for your bug reports, feature requests, or any other Quarto-related content.

Installation

VS Code Marketplace

  1. Open Visual Studio Code/Positron.
  2. Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on macOS).
  3. Search for "Quarto Wizard".
  4. Click Install on the extension.

Command Line

  • Visual Studio Code:
code --install-extension mcanouil.quarto-wizard
  • Positron:
positron --install-extension mcanouil.quarto-wizard

Manual Installation

  1. Download the latest .vsix file from the GitHub Releases.
  2. In VS Code, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
  3. Run Extensions: Install from VSIX....
  4. Select the downloaded .vsix file.

Requirements

  • Check Internet Connection: Ensure you have an active internet connection before installing extensions.
  • Check Quarto Installation: Verify that Quarto is installed and available in your system's PATH.

Commands

  • Quarto Wizard: Install Extensions: Opens the extension installer interface.
    • Browse Extensions: View a list of available Quarto extensions.

      This image displays a search results interface for Quarto extensions authored by the user "mcanouil". It lists various extensions, including their names, version numbers, star ratings, and brief descriptions. The search highlights extensions such as Animate, Div Reuse, Elevator, Github, Highlight Text, Iconify, Invoice, and Letter, showcasing diverse functionalities ranging from animated content to document styling and templates for invoices and letters. The purpose of the image is to present a concise overview of available extensions along with their popularity and license information for Quarto users.

    • Install Extensions: Install selected Quarto extensions with a single click.
  • Quarto Wizard: Use Template: Opens the template installer interface.
    • Browse Templates: View a list of available Quarto templates from Quarto Extensions.

      This image showcases a menu of Quarto extension templates available for selection. It lists templates like "LETTER," "ACADEMIC TYPST," "ACM," "ACS," and others, each with details such as version, number of stars, repository link, and license type. The "LETTER" template is highlighted, suggesting recent usage. This visual serves as a practical guide for users looking to choose and apply specific Quarto templates effectively.

    • Install Templates: Install selected Quarto template with a single click.
  • Quarto Wizard: Clear Recently Installed Extensions: Clears the list of recently installed extensions.
  • Quarto Wizard: Show Quarto Wizard Log Output: Displays the output log for the extension installer.
  • Quarto Wizard: Quarto Reproducible Document: Creates a new Quarto document.
  • Quarto Wizard: Focus on Extensions Installed View: Opens the Quarto Wizard view to display and manage the Quarto extensions installed.

Usage

Quarto Wizard Explorer View

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
  2. Type Quarto Wizard: Focus on Extensions Installed View and select it.
    Or click on the Quarto Wizard icon in the Activity Bar.

    This image showcases the Quarto Wizard extension interface within Visual Studio Code. It highlights features like the workspace view, extension management options for adding, removing, or updating extensions, as well as template usage and GitHub repository access. The interface also illustrates the Quarto Wizard Explorer section, with annotations using colored arrows and text to explain specific functionalities. Two workspaces are displayed: one with installed extensions labeled wizard-dev, and another without installed extensions labeled quarto-playground. This visual guide serves users looking to manage Quarto extensions in Visual Studio Code effectively.

Or click on the Quarto Wizard icon in the Activity Bar.

Quarto Wizard Explorer View in action:

explorer-view.mp4

Important

Quarto extensions can only be updated if installed by Quarto Wizard (i.e., if source: <owner>/<repository> is present in _extension.yml). You can manually add the source to the extension's _extension.yml file to enable updates.

Explorer/Editor Context Menu

  • Right-click in the Explorer or Editor to access the following commands:
    • Install Extensions.
    • Use Template (Only retrieves the Quarto document. For other resources, please use quarto use template manually).
    • Quarto Reproducible Document.
    • Show Quarto Wizard Log Output.
    • Clear Recently Installed Extensions.

This image presents a context menu within Visual Studio Code. The menu displays options such as "Install Extensions," "Use Template", "Quarto Reproducible Document", and more. The "Quarto Wizard" option is highlighted. This visual aids users in navigating and utilising Quarto tools effectively within their workspace.

Install Quarto Extensions

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
  2. Type Quarto Wizard: Install Extensions and select it.
  3. Browse the list of available Quarto extensions.
  4. Select the Quarto extension(s) you want to install.
  5. Answer the prompts to confirm the installation.

Note

Quarto Wizard can only display available information, i.e., if the author of an extension has not provided a description, license, and/or used tags for release versions, these fields will be populated with none.

Use Quarto Templates

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
  2. Type Quarto Wizard: Use Template and select it.
  3. Browse the list of available Quarto templates.
  4. Select the Quarto template you want to use.
  5. Answer the prompts to confirm the installation.

Create a New Reproducible Document

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
  2. Type Quarto Wizard: Quarto Reproducible Document and select it.
  3. Choose the template for the new Quarto document.

Show Quarto Wizard Output

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
  2. Type Quarto Wizard: Show Quarto Wizard Log Output and select it.
  3. View the output log for the Quarto Wizard extension.
  4. Use the output log to troubleshoot any issues.

Configuration

The Quarto Wizard extension can be configured through VS Code settings. Access these through:

  • File > Preferences > Settings (or Code > Preferences > Settings on macOS).
  • Search for "Quarto Wizard".

Available Settings

Extension Installation Behaviour

{
  "quartoWizard.ask.trustAuthors": "ask",
  "quartoWizard.ask.confirmInstall": "ask"
}
  • quartoWizard.ask.trustAuthors: Control prompts for trusting extension authors
    • "ask": Ask each time (default).
    • "yes": Always trust.
    • "never": Never ask.
  • quartoWizard.ask.confirmInstall: Control installation confirmation prompts
    • "ask": Ask each time (default).
    • "yes": Auto-confirm.
    • "never": Never ask.

Quarto CLI Configuration

{
  "quartoWizard.quarto.path": "/usr/local/bin/quarto"
}
  • quartoWizard.quarto.path: Specify custom path to Quarto CLI executable.

Getting Help

If you experience issues:

  1. Check the output log: Quarto Wizard: Show Quarto Wizard Log Output
  2. Search existing issues: GitHub Issues
  3. Report a bug: Create a new issue following the provided template.

Verifying Release Asset Build Provenance

To ensure the authenticity and integrity of the release asset, use GitHub CLI to verify its build provenance.

gh attestation verify quarto-wizard-<version>.vsix --repo mcanouil/quarto-wizard

Development

  1. Clone the repository:

    git clone https://github.com/mcanouil/quarto-wizard
  2. Open the project in Visual Studio Code.

  3. Install the dependencies:

    npm install
  4. Launch the extension:

    • Press F5 to open a new Visual Studio Code window with the extension loaded.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Disclaimer

This extension is not affiliated with or endorsed by Quarto or its maintainers.

About

Quarto Wizard is a Visual Studio Code / Positron extension that assists you in managing Quarto projects.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors 5