examples: py-env to py-config (#784)

* examples: py-env to py-config

* 1 example as JSON with type

* Fix todo event attribute
This commit is contained in:
Ted Patrick
2022-09-23 11:04:31 -05:00
committed by GitHub
parent 146264ff12
commit d4e41e679d
19 changed files with 132 additions and 95 deletions

View File

@@ -78,13 +78,18 @@
</div>
</div>
<py-env>
- numpy
- sympy
- paths:
- ./palettes.py
- ./fractals.py
</py-env>
<py-config type="json">
{
"packages": [
"numpy",
"sympy"
],
"paths": [
"./palettes.py",
"./fractals.py"
]
}
</py-config>
<py-script>
from pyodide.ffi import to_js, create_proxy