File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pnpm add pyscript-react # installation with pnpm
2828
2929``` tsx
3030<PyScriptProvider >
31- <PyScript >print ("Hello world!")</PyScript >
31+ <PyScript >display ("Hello world!")</PyScript >
3232</PyScriptProvider >
3333```
3434
@@ -37,10 +37,13 @@ pnpm add pyscript-react # installation with pnpm
3737``` tsx
3838<PyScriptProvider >
3939 <PyScript
40+ source = " /folium_map.py" ,
4041 output = " folium"
4142 generateOutputTag
42- pyEnvContent = { [" folium" ]}
43- src = " ./folium_map.py"
43+ pyConfigProps = { {
44+ type: " json" ,
45+ packages: new Set ([" folium" ]),
46+ }}
4447 />
4548</PyScriptProvider >
4649```
@@ -50,7 +53,7 @@ pnpm add pyscript-react # installation with pnpm
5053from folium import Map
5154
5255variable = Map(location = [45.5236 , - 122.6750 ])
53- variable
56+ display( variable, target = " folium " )
5457```
5558
5659## Documentation
You can’t perform that action at this time.
0 commit comments