+Note that SoS recognizes the [`%expand` magic](https://vatlab.github.io/sos-docs/doc/documentation/SoS_Magics.html#magic_expand) and highlights the intepolated expressions. SoS essentially treats the cell content as [Python f-strings](https://www.python.org/dev/peps/pep-0498/) (with configurable sigil) so almost arbitrary Python expressions could be used. In addition, instead of passing variables from subkernels to SoS and to a markdown cell, you can use a [`%render` magic](https://vatlab.github.io/sos-docs/doc/documentation/SoS_Magics.html#magic_render) to render output from any subkernels as markdown. The input of markdown cells will be hidden in exported HTML reports if you are using one of the SoS templates, as shown in [this example](https://vatlab.github.io/sos-docs/doc/examples/Preview_and_Report_Generation.html).
0 commit comments