Skip to content

Commit 0a97146

Browse files
feat: updated README.md
1 parent d5e4996 commit 0a97146

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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
5053
from folium import Map
5154

5255
variable = Map(location=[45.5236, -122.6750])
53-
variable
56+
display(variable, target="folium")
5457
```
5558

5659
## Documentation

0 commit comments

Comments
 (0)