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
28
28
29
29
``` tsx
30
30
<PyScriptProvider >
31
- <PyScript >print ("Hello world!")</PyScript >
31
+ <PyScript >display ("Hello world!")</PyScript >
32
32
</PyScriptProvider >
33
33
```
34
34
@@ -37,10 +37,13 @@ pnpm add pyscript-react # installation with pnpm
37
37
``` tsx
38
38
<PyScriptProvider >
39
39
<PyScript
40
+ source = " /folium_map.py" ,
40
41
output = " folium"
41
42
generateOutputTag
42
- pyEnvContent = { [" folium" ]}
43
- src = " ./folium_map.py"
43
+ pyConfigProps = { {
44
+ type: " json" ,
45
+ packages: new Set ([" folium" ]),
46
+ }}
44
47
/>
45
48
</PyScriptProvider >
46
49
```
@@ -50,7 +53,7 @@ pnpm add pyscript-react # installation with pnpm
50
53
from folium import Map
51
54
52
55
variable = Map(location = [45.5236 , - 122.6750 ])
53
- variable
56
+ display( variable, target = " folium " )
54
57
```
55
58
56
59
## Documentation
You can’t perform that action at this time.
0 commit comments