IBM / prompt-declaration-language

Prompt Declaration Language (PDL) is a declarative prompt programming language.
https://ibm.github.io/prompt-declaration-language/
Apache License 2.0
29 stars 7 forks source link

Clearing output doesn't clear _all_ output in a chat example. #147

Open deanwampler opened 1 week ago

deanwampler commented 1 week ago

While testing a notebook PR for the https://github.com/ibm-granite-community/granite-snack-cookbook/, I also cleared the notebook output in Jupyter Lab, which is our standard practice. In doing so, I noticed a strange behavior for the output of the chat program. Invoking "Clear outputs of all cells" in Jupyter Lab only erased one line of the chat interaction at a time. I had to repeat the command multiple times to clear the whole output. This seems like a bug.

mandel commented 1 week ago

Thanks for reporting that. We will look at this issue.

deanwampler commented 1 week ago

I didn't say this explicitly, but if this is a bug, I'm guessing it would be related to the notebook extension. For example, the chat is printed "flat", but is it stored "hierarchically" or in some sort of linked list and the notebooks "clear output" command only cleans one layer?