You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the UX is pretty decent (ignore the not actually fibbonaci function, it's just an example) but by adding a <codapi-snippet/> block after ever pre we can get runnable code.
This would work nicely for python and SQL tutorials potentially.
```pythondeffib(n):
if n <2:
return1else:
return n + fib(n -1)
print(fib(10))
```
<codapi-snippetengine="wasi"sandbox="python"editor="basic"></codapi-snippet>
the UX is pretty decent (ignore the not actually fibbonaci function, it's just an example) but by adding a
<codapi-snippet/>
block after everpre
we can get runnable code.This would work nicely for python and SQL tutorials potentially.
produces
with the benefit that it's directly in-page editable. we'd need to see about sharing state between the different boxes.
it's an idea. the jupylite experience kinda sucks, and this'd be better by far.
The text was updated successfully, but these errors were encountered: