### Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1864

<div type='discussions-op-text'>

<sup>Originally posted by **stuvjordan-uroc** August 14, 2022</sup>
Hi!

In one of the source files for a quarto website I'm building, I'd like to display a chart I'm importing from an Observable notebook in two different places.

So, the source file first has an import statement:
```{ojs}
import { commentChart } from '@stuvjordan/lesson-1'
```
then a cell showing the chart:
```{ojs}
commentChart
```
and then, later in the document, a cell showing the chart again:
```{ojs}
commentChart
```

(The notebook the chart is being imported from is public, so you can try all the above yourself.)

This bonks when I render the sourcefile.  The chart displays as it should at the second of the two code blocks.  But the first codeblock outputs the raw javascript object containing the chart like this:

![image](https://user-images.githubusercontent.com/78857503/184540949-410752f2-7732-4aba-9097-b453f7de35df.png)

Is this a bug?  Or is there a gotcha I missed in Quarto's or Observable's documentation about how to display the same chart twice in a single file?

Thanks!</div>
cscheid
2022-08-14T14:27:29Z
jjallaire
invalid
v1.2
closed
displaying a chart imported from observable twice in the same document
https://github.com/quarto-dev/quarto-cli/issues/1865