-
DescriptionHi -- I don't know if this is something I'm doing wrong, an expected behaviour, or a bug, but I'm kind of surprised to see an empty code block output from the second call to ---
title: "Notebook Test"
subtitle: "Empty code blocks output"
jupyter: python3
---
This block works exactly as expected:
```{python}
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD'))
df.A.plot.hist()
```
From this next block I would expect only to see the image, not the empty code block:
```{python}
#| echo: false
df.A.plot.hist()
``` Quarto version is 1.5.43 and running on OSX 14.5. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
What do you want to do exactly? See the documentation: https://quarto.org/docs/computations/execution-options.html I suggest to use |
Beta Was this translation helpful? Give feedback.
-
Upgrading Quarto hasn't changed the output so it must be something else. Is there a parameter I need to add to the render command perhaps?
Thank you. |
Beta Was this translation helpful? Give feedback.
Then you probably need to state that what your code cell emits is markdown and not the results of a Jupyter cell.
#| output: asis
is probably what you need (or a more complex thing using IPython).