From the course: Data Science Reporting with Quarto for Python

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Understanding how comments work in Quarto docs

Understanding how comments work in Quarto docs

From the course: Data Science Reporting with Quarto for Python

Understanding how comments work in Quarto docs

- [Instructor] We're in a quarto-comments.qmd file in the 08_04b folder, and we're going to attempt to render this document with command shift K. It is going to fail because there is a math error on line 16. We're attempting to divide one by zero. So let's fix that. Let's divide one by one and let's render the document again with command shift K. And this is a perfect setup to talk about the different kinds of code comments in Quarto documents. So one type of code comment that we have is inside of Python code, which we can see on line five here where we're using a hash. And if a code chunk is displayed in the output, that code comment is also going to be seen. Now on line six, we can see an HTML comment. HTML comment start and end like this. Let's move the closing of our comment to down here and let's update the preview of our document with command shift K. And we can now see that the content between the start and the end of the HTML comment is no longer displayed. Okay, let's move…

Contents