In-browser code playgrounds
I'm a big fan of interactive code snippets in all kinds of technical writing, from product docs to online courses to blog posts. Like this one:def greet(name):
print(f"Hello, {name}!")
greet("World")
In fact, I even built an open source tool called Codapi1 for embedding such snippets.Typically, a code playground consists of a client-side widget and a server-side part that executes the code and returns the result: browser
┌───────────────────────────────┐
│ def greet(name): │
│ pr...
Read more at antonz.org