0.5.0
Sample output
Now you can show the sample code output before the user ever runs the code. To do this, add the output
attribute to the codapi-snippet
and add the pre
block with a sample output after the snippet.
<pre>msg = "hello\nworld"
print(msg)</pre>
<codapi-snippet sandbox="python" editor="basic" output>
</codapi-snippet>
<pre>hello
world</pre>