mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user