-
DescriptionWhen I use Thanks! ---
title: "Jupyter Notebook Test"
jupyter: python3
---
Some text 1
```{python}
print("pycell 1")
```
Some text 2
::: {.content-hidden}
HIDDEN
::: generates {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"title: \"Jupyter Notebook Test\"\n",
"jupyter: python3\n",
"---\n",
"\n",
"Some text 1"
]
},
{
"cell_type": "code",
"metadata": {},
"source": [
"print(\"pycell 1\")"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Some text 2\n",
"\n",
"::: {.content-hidden}\n",
"HIDDEN\n",
":::"
]
}
],
"metadata": {
"kernelspec": {
"name": "python3",
"language": "python",
"display_name": "Python 3 (ipykernel)",
"path": "~/coding/-GitRepos/comosoco/project/.venv/share/jupyter/kernels/python3"
}
},
"nbformat": 4,
"nbformat_minor": 4
} Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Same is true if I do ::: {.content-hidden unless-profile="development"} and quarto convert --profile production |
Beta Was this translation helpful? Give feedback.
-
What you want is not to convert then. Use |
Beta Was this translation helpful? Give feedback.
-
To be clear, there is no real comment syntax in Quarto as of today (v1.7.8), e.g., code cells inside |
Beta Was this translation helpful? Give feedback.
What you want is not to convert then.
The purpose of the convert command is to convert so it keeps the content otherwise it's not a conversion.
Use
format: ipynb
instead.