How to get the output of a PySpark notebook code cell (brick/block) into a string variable that lives in another code cell?
I’m working with Microsoft Fabric’s PySpark notebook and I got the Copilot spitting out good stuff about my data that I want to keep by using the chat_magics %%chat tool. I want to keep that output into a variable as a string so I can later put it somewhere useful, because just the output of a cell isn’t a final solution.