Write some type of code templating system that does the following
Have one file, that lays out each example. This should be executable python code. I should also have commented markers that pull out the relevant code snippets. Each snippet should be named.
From that templating, call .to_codepen() to generate the codepen link
Have a build step to generate an ipynb file with the same step
Checks
How would you categorize this request. You can select multiple if not sure
Documentation
Enhancement Description
Buckaroo is a complex widget with multiple levels of abstraction. Writing examples for this is also difficult.
Pseudo Code Implementation
There are a couple of features that fall out of this.
The buckaroo widget already formats json for the JS to display. That's it's core reason for existing. Add a method
.to_codepen()
that generates a codepen link for any buckaroo state. Look here https://github.com/paddymul/buckaroo/blob/main/docs/examples/CodePenButton.tsx#L40-L51Write some type of code templating system that does the following
.to_codepen()
to generate the codepen linkHere's an example
Float_col example
Here is what an ipynb cell using this would look like in template form
You can write a similar template for solara/pycafe
Prior Art
https://mmomtchev.github.io/react-edit-list/#/simple