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:
@@ -7,11 +7,13 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<py-env>
|
||||
- numpy
|
||||
- networkx
|
||||
- matplotlib
|
||||
</py-env>
|
||||
<py-config>
|
||||
packages = [
|
||||
"numpy",
|
||||
"networkx",
|
||||
"matplotlib"
|
||||
]
|
||||
</py-config>
|
||||
<py-script>
|
||||
import numpy as np
|
||||
import networkx as nx
|
||||
|
||||
Reference in New Issue
Block a user