Skip to content
Discussion options

You must be logged in to vote

When I try your solution

I believe you mean using include ? It would be a lot easier if you share a complete reproducible example when you reply something is not working. It was reminded to you earlier at #6768 (comment)

Here what I tested

  • index.qmd
---
title: "Hello World"
---

```{python}
from tabulate import tabulate
from IPython.display import Markdown
```


# content

{{< include _codeblock.qmd >}}
  • _codeblock.qmd
```{python}
#| echo: false
#| label: tbl-test
#| tbl-cap: Volumes
table = [["Sun",696000,1989100000],["Earth",6371,5973.6], ["Moon",1737,73.5],["Mars",3390,641.85]]
Markdown(tabulate(table))
```

Results: quarto render index.qmd

echo: false works, and table is correc…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@mcanouil
Comment options

mcanouil Sep 8, 2023
Collaborator

@hugo-pires
Comment options

@mcanouil
Comment options

mcanouil Sep 8, 2023
Collaborator

Comment options

You must be logged in to vote
3 replies
@hugo-pires
Comment options

@cderv
Comment options

cderv Sep 8, 2023
Maintainer

Answer selected by hugo-pires
@hugo-pires
Comment options

Comment options

You must be logged in to vote
1 reply
@hugo-pires
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment