PyScript-React integrates PyScript library into react components. Making it easier to use inside your react projects 😊
Required by whole library: react, prop-types
Required by PyScriptProvider, and PyScriptProviderZustandWrapper: react-helmet-async
Required by PyScriptProviderZustandWrapper: zustand
yarn add pyscript-react # installation with yarn (preferred node package manager)
npm i pyscript-react # installation with npm
pnpm add pyscript-react # installation with pnpm<PyScriptProvider>
  <PyScript>display("Hello world!")</PyScript>
</PyScriptProvider><PyScriptProvider>
  <PyScript
    source="/folium_map.py",
    output="folium"
    generateOutputTag
    pyConfigProps={{
      type: "json",
      packages: new Set(["folium"]),
    }}
  />
</PyScriptProvider># folium_map.py
from folium import Map
variable = Map(location=[45.5236, -122.6750])
display(variable, target="folium")we are working on it... 🐢
Look here: CONTRIBUTING.md