Path: blob/main/tests/smoke/yaml-intelligence/crashes/2022-02-01_0001.json
6539 views
{1"kind": "completions",2"context": {3"path": "~/quarto/quarto-web/index.qmd",4"filetype": "markdown",5"embedded": false,6"formats": [],7"project_formats": [8"html"9],10"engine": "markdown",11"line": "css: index.css",12"code": "---\npagetitle: \"Quarto\"\ndescription: |\n Quarto is an open-source scientific and technical publishing system built on Pandoc\npage-layout: custom\nsection-divs: false\ntoc: false\ncss: index.css\neditor: source\n---\n\n::: {.hero-banner}\n\n::: {.hero-image .hero-image-left}\n\n:::\n\n::: {.content-block}\n\n# Welcome to Quarto\n\n### Quarto^[®]{.trademark}^ is an open-source scientific and technical publishing system built on [Pandoc](https://pandoc.org)\n\n- Create dynamic documents with Python, R, and JavaScript via integration with [Jupyter](https://jupyter.org/), [Knitr](https://yihui.org/knitr/), and [Observable](https://github.com/observablehq/)\n- Publish high-quality articles, reports, presentations, websites, and books in HTML, PDF, MS Word, ePub, and more.\n- Author with scientific markdown, including equations, citations, crossrefs, figure panels, callouts, advanced layout, and more.\n\n::: {.hero-buttons}\n[Get Started](get-started.html){.btn-get-started .btn-action .btn .btn-success .btn-lg role=\"button\"}\n[Guide](docs/guide/){#btn-guide .btn-action .btn .btn-info .btn-lg role=\"button\"}\n::: \n\n:::\n\n::: {.hero-image .hero-image-right}\n\n:::\n\n:::\n\n\n::: {.hello-quarto .alt-background}\n::: {.content-block}\n\n::: {.hello-quarto-banner}\n# Hello, Quarto \n<ul class=\"nav nav-pills\" id=\"hello-quarto-tab\" role=\"tablist\">\n <li class=\"nav-item\" role=\"presentation\">\n <button class=\"nav-link active\" id=\"jupyter-tab\" data-bs-toggle=\"pill\" data-bs-target=\"#jupyter\" type=\"button\" role=\"tab\" aria-controls=\"jupyter\" aria-selected=\"true\">Jupyter</button>\n </li>\n <li class=\"nav-item\" role=\"presentation\">\n <button class=\"nav-link\" id=\"knitr-tab\" data-bs-toggle=\"pill\" data-bs-target=\"#knitr\" type=\"button\" role=\"tab\" aria-controls=\"knitr\" aria-selected=\"false\">Knitr</button>\n </li>\n <li class=\"nav-item\" role=\"presentation\">\n <button class=\"nav-link\" id=\"observable-tab\" data-bs-toggle=\"pill\" data-bs-target=\"#observable\" type=\"button\" role=\"tab\" aria-controls=\"observable\" aria-selected=\"false\">Observable</button>\n </li>\n</ul>\n:::\n\n<div class=\"tab-content\" id=\"hello-quarto-tabcontent\">\n\n<div class=\"tab-pane fade show active\" id=\"jupyter\" role=\"tabpanel\" aria-labelledby=\"jupyter-tab\">\n\nWeave together narrative text and code to produce elegantly formatted output. Quarto documents are fully reproducible. Use markdown with executable code cells (shown below) or render existing Jupyter Notebooks using any Jupyter kernel.\n\n::: {.grid}\n::: {.g-col-lg-6 .g-col-12}\n````markdown\n---\ntitle: \"matplotlib demo\"\nformat:\n html:\n code-fold: true\njupyter: python3\n---\n\nFor a demonstration of a line plot on a polar axis, see @fig-polar.\n\n```{{python}}\n#| label: fig-polar\n#| fig-cap: \"A line plot on a polar axis\"\n\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nr = np.arange(0, 2, 0.01)\ntheta = 2 * np.pi * r\nfig, ax = plt.subplots(\n subplot_kw = {'projection': 'polar'} \n)\nax.plot(theta, r)\nax.set_rticks([0.5, 1, 1.5, 2])\nax.grid(True)\nplt.show()\n```\n````\n:::\n\n::: {.hello-output .g-col-lg-6 .g-col-12}\n\n\n\n:::\n:::\n\n</div>\n\n<div class=\"tab-pane fade\" id=\"knitr\" role=\"tabpanel\" aria-labelledby=\"knitr-tab\">\n\nQuarto is a multi-language, next generation version of R Markdown from RStudio, and includes dozens of new features and capabilities (while at the same being able to render most existing Rmd files without modification).\n\n::: {.grid}\n::: {.g-col-lg-6 .g-col-12}\n````markdown\n---\ntitle: \"ggplot2 demo\"\nauthor: \"Norah Jones\"\ndate: \"May 22nd, 2021\"\nformat: \n html:\n fig-width: 8\n fig-height: 4\n code-fold: true\n---\n\n## Air Quality\n\n@fig-airquality further explores the impact of temperature on ozone level.\n\n```{{r}}\n#| label: fig-airquality\n#| fig-cap: Temperature and ozone level.\n#| warning: false\n\nlibrary(ggplot2)\n\nggplot(airquality, aes(Temp, Ozone)) + \n geom_point() + \n geom_smooth(method = \"loess\"\n)\n```\n````\n:::\n\n::: {.hello-output .g-col-lg-6 .g-col-12}\n\n\n\n:::\n:::\n\n</div>\n\n<div class=\"tab-pane fade\" id=\"observable\" role=\"tabpanel\" aria-labelledby=\"observable-tab\">\n\nQuarto includes native support for Observable JS, a set of JavaScript enhancements created by Mike Bostock (the author of D3). Observable JS uses a reactive execution model, and is especially well suited for interactive data exploration and analysis.\n\n\n\n::: {.grid}\n::: {.g-col-lg-6 .g-col-12}\n````markdown\n---\ntitle: \"observable plot\"\nauthor: \"Norah Jones\"\nformat: html\n---\n\n## Athletes\n\n@fig-athletes plots the relationship between weight and gender.\n\n```{{ojs}}\n//| echo: false\nathletes = FileAttachment(\"athletes.csv\")\n .csv({typed: true})\n```\n\n```{{ojs}}\n//| label: fig-athletes\n//| fig-cap: Athletes by weight and gender\n//| code-fold: true\n\nPlot.rectY(athletes, Plot.binX(\n {y: \"count\"}, \n {x: \"weight\", fill: \"sex\"}\n )).plot()\n```\n````\n:::\n\n\n::: {.hello-output .g-col-lg-6 .g-col-12}\n\n\n\n:::\n\n\n:::\n\n</div>\n\n</div>\n\n\n\n::: {.grid}\n\n\n:::\n:::\n:::\n\n\n::: {.content-block}\n::: {.features}\n\n::: {.feature}\n### Dynamic Documents\nExecute code with Jupyter, Knitr, and Observable. Create reproducible documents that can be regenerated when underlying assumptions or data change.\n\n::: {.learn-more}\n[Learn more »](docs/computations/running-code.qmd)\n:::\n:::\n\n::: {.feature}\n### Beautiful Publications\nPublish high-quality articles, reports, presentations, websites, and books in HTML, PDF, MS Word, ePub, and more. Use a single source document to target multiple formats.\n\n::: {.learn-more}\n[Learn more »](docs/output-formats/all-formats.qmd)\n:::\n:::\n\n::: {.feature}\n### Scientific Markdown\nPandoc markdown has excellent support for LaTeX equations and citations. Quarto adds extensions for cross-references, figure panels, callouts, advanced page layout, and more.\n\n::: {.learn-more}\n[Learn more »](docs/authoring/markdown-basics.qmd)\n:::\n:::\n\n::: {.feature}\n### Authoring Tools\nUse your favorite tools including Jupyter Lab, RStudio IDE, VS Code, or any text editor. Use the Quarto visual markdown editor for long-form documents.\n\n::: {.learn-more}\n[Learn more »](docs/tools/jupyter-lab.qmd)\n:::\n:::\n\n::: {.feature}\n### Interactivity\nEngage readers by adding interactive data exploration to your documents using Jupyter Widgets, htmlwidgets for R, Observable JS, and Shiny.\n\n::: {.learn-more}\n[Learn more »](docs/interactive/)\n:::\n:::\n\n::: {.feature}\n### Websites and Books\nPublish collections of documents as a website. Create books and manuscripts in both print formats (PDF and MS Word) and online formats (HTML and ePub).\n\n::: {.learn-more}\n[Learn more »](docs/websites/)\n:::\n:::\n\n:::\n:::\n\n\n::: {.get-started .alt-background}\n::: {.content-block}\n\n### Analyze. Share. Reproduce. Your data has a story---tell it with Quarto.\n\n[Get Started](docs/getting-started/index.html){.btn-get-started .btn-action .btn .btn-success .btn-lg role=\"button\"}\n\n:::\n:::\n\n",13"position": {14"row": 7,15"column": 1416},17"explicit": true18}19}2021