Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code-tools + echo does not behave consistently on ipynb/qmd #11682

Open
mcanouil opened this issue Dec 13, 2024 · 1 comment
Open

code-tools + echo does not behave consistently on ipynb/qmd #11682

mcanouil opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working jupyter

Comments

@mcanouil
Copy link
Collaborator

There is a weird unexpected interaction which changes depending on how the options are called on a Jupyter Notebook.

Assuming:

---
title: "Reproducible Quarto Document"
engine: jupyter
---

```{python}
print("Hello, world!")
```

```python
print("Goodbye, world!")
```

Converting it as a Jupyter Notebook via:

quarto convert index.qmd 
QMDIPYNB
Correct:
quarto render index.qmd --to html -M code-tools:true
image
Incorrect:
quarto render index.ipynb --to html -M code-tools:true
image
Correct:
quarto render index.qmd --to html -M code-tools:true -M echo:false
image
Incorrect:
quarto render index.ipynb --to html -M code-tools:true -M echo:false
image
Correct:
quarto render index.qmd --to html -M code-tools:true -M code-fold:true
image
Correct:
quarto render index.ipynb --to html -M code-tools:true -M code-fold:true
image
Correct:
quarto render index.qmd --to html -M code-tools:true -M code-fold:true -M echo:false
image
Incorrect:
quarto render index.ipynb --to html -M code-tools:true -M code-fold:true -M echo:false
image

Originally posted by @mcanouil in #11661 (reply in thread)

@mcanouil mcanouil added the bug Something isn't working label Dec 13, 2024
@mcanouil
Copy link
Collaborator Author

Additionally, code-tools: true only takes effect in Jupyter notebook with code-fold: true (possibly with other options as well).
code-tools: true does not work on default settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jupyter
Projects
None yet
Development

No branches or pull requests

2 participants