examples/reflex_demo/README.md
This demo shows how to integrate PyGWalker with Reflex, a Python web framework for building interactive web applications.
Make sure you have PyGWalker installed with the Reflex plugin:
pip install "pygwalker[reflex]"
Navigate to this directory:
cd examples/reflex_demo
Initialize Reflex (first time only):
reflex init
Run the application:
reflex run
Open your browser and navigate to http://localhost:3002
app/app.py)app/app.py - Main application file with PyGWalker integrationapp/__init__.py - Package initializationrxconfig.py - Reflex configuration fileREADME.md - This documentation fileThe demo follows the standard Reflex package structure:
examples/reflex_demo/
├── app/
│ ├── __init__.py
│ └── app.py # Main app with PyGWalker integration
├── rxconfig.py # Reflex configuration
├── README.md
└── .gitignore
This structure allows Reflex to properly import the app as app.app where:
app_name="app" in rxconfig.pyapp/ directory contains the Python packageapp/app.py contains the app = rx.App() objectregister_pygwalker_api transformer for complete functionalityThis demo includes fixes for:
register_pygwalker_api function to properly mount FastAPI sub-applicationsapp_name/app_name.py conventionThe demo now provides complete PyGWalker integration within a Reflex web application with full API communication support.