Skip to content

0.5.0

Compare
Choose a tag to compare
@nalgeon nalgeon released this 22 Oct 16:07
· 138 commits to main since this release

Sample output

⚠️ This is an experimental feature that may be removed in future releases.

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>