I would like to hide multiple cells of details in Pluto. The example notebooks in Pluto includes the following function to hide/expand details for a single cell:
I would like to support multiple cells with potentially different types of information, such as markdown, markdown with latex and code, and code by itself. I attempted to extend the functionality but ran into two issues. First, all cells have a grey background. Second, it would not work for julia code. Is there a way to achieve this functionality? Thank you
it sounds like you want something similar to
the Div element in PlutoUI.ExperimentalLayout? except instead of outputing the div element, you want to output the detail element.
Thanks for looking into this. Roughly what I am trying to do is create a set of nested cells that can be hidden or revealed—almost like a mini notebook nested within a notebook. I’m not sure if it necessarily needs to have all of the same GUI functionality as a Pluto cell (i.e. the add cell button), but I was hoping to have something that supports Markdown, Julia, and Latex.
I tried modifying your example, but I couldn’t figure out how to get it to work. For example, how would you create the following 3 cells:
Thanks! It looks like I needed to wrap cell 2 in a begin block. This is close to what I need. One last question: Is there a way to display the contents of cell 2 in addition to the output?
I wanted to bump this one last time since I initially asked during the holidays when many people may not be on discourse. Basically, I want to see if anyone knows how to display Julia code and its output in a details element. Currently, it displays the output, but not the code.