instruction
stringlengths
0
1k
input
stringlengths
1
1k
output
stringlengths
10
6.51k
_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/") REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/") PIP_URL = "https://pypi.org/project/reflex" GITHUB_URL = "https://github.com/reflex-dev/reflex" OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone" GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions" FORUM_URL = "https://forum.reflex.dev" TWITTER_URL = "https://twitter.com/getreflex" DISCORD_URL = "https://discord.gg/T5WSbC2YtQ" CONTACT_URL = "mailto:contact@reflex.dev" CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat" LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev" YC_URL = "https://www.ycombinator.com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VI
FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
ILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/") PIP_URL = "https://pypi.org/project/reflex" GITHUB_URL = "https://github.com/reflex-dev/reflex" OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone" GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions" FORUM_URL = "https://forum.reflex.dev" TWITTER_URL = "https://twitter.com/getreflex" DISCORD_URL = "https://discord.gg/T5WSbC2YtQ" CONTACT_URL = "mailto:contact@reflex.dev" CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat" LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev" YC_URL = "https://www.ycombinator.com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiango
NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
= "https://github.com/reflex-dev/reflex" OLD_GITHUB_URL = "https://github.com/pynecone-io/pynecone" GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions" FORUM_URL = "https://forum.reflex.dev" TWITTER_URL = "https://twitter.com/getreflex" DISCORD_URL = "https://discord.gg/T5WSbC2YtQ" CONTACT_URL = "mailto:contact@reflex.dev" CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat" LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev" YC_URL = "https://www.ycombinator.com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html"
NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
ynecone-io/pynecone" GITHUB_DISCUSSIONS_URL = "https://github.com/orgs/reflex-dev/discussions" FORUM_URL = "https://forum.reflex.dev" TWITTER_URL = "https://twitter.com/getreflex" DISCORD_URL = "https://discord.gg/T5WSbC2YtQ" CONTACT_URL = "mailto:contact@reflex.dev" CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat" LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev" YC_URL = "https://www.ycombinator.com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script"
NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/insta
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
TWITTER_URL = "https://twitter.com/getreflex" DISCORD_URL = "https://discord.gg/T5WSbC2YtQ" CONTACT_URL = "mailto:contact@reflex.dev" CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat" LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev" YC_URL = "https://www.ycombinator.com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link"
SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "h
NPMJS_URL = "https://www.npmjs.com/"
etreflex" DISCORD_URL = "https://discord.gg/T5WSbC2YtQ" CONTACT_URL = "mailto:contact@reflex.dev" CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat" LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev" YC_URL = "https://www.ycombinator.com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/"
ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALL
SPLINE_URL = "https://github.com/splinetool/react-spline"
NTACT_URL = "mailto:contact@reflex.dev" CHAT_APP_URL = "https://github.com/reflex-dev/reflex-chat" LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev" YC_URL = "https://www.ycombinator.com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline"
DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/insta
ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev"
"https://github.com/reflex-dev/reflex-chat" LINKEDIN_URL = "https://www.linkedin.com/company/reflex-dev" YC_URL = "https://www.ycombinator.com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev"
DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/nav
DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks"
edin.com/company/reflex-dev" YC_URL = "https://www.ycombinator.com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks"
LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Clo
DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ"
com/companies/reflex" ROADMAP_URL = "https://github.com/reflex-dev/reflex/issues/2727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ"
# Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded3
LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk"
727" CONTRIBUTING_URL = "https://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls.
NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX
BUN_URL = "https://bun.sh"
tps://github.com/reflex-dev/reflex/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh"
NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLO
NEXTJS_URL = "https://nextjs.org"
/blob/main/CONTRIBUTING.md" REPORT_A_BUG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org"
POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.re
NODEJS_URL = "https://nodejs.org/en/"
UG_URL = "https://github.com/reflex-dev/reflex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/"
PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("
POETRY_URL = "https://python-poetry.org/"
flex/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/"
PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.
PIPENV_URL = "https://pipenv.pypa.io/en/latest/"
late=bug_report.md&title=" FRAGMENT_COMPONENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/"
VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCO
PIP_URL = "https://pypi.org/project/pip/"
ENT_INFO_URL = "https://react.dev/reference/react/Fragment" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/"
VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5
VENV_URL = "https://docs.python.org/3/library/venv.html"
t" NOTION_HOSTING_URL = "https://www.notion.so/reflex-dev/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html"
CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_
VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/"
/Reflex-Hosting-Documentation-57a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/"
FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = {
CONDA_URL = "https://conda.io/"
a4dd55d6234858bbae0be75be79ce7?pvs=4" NEXT_SCRIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/"
PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a ref
FASTAPI_URL = "https://fastapi.tiangolo.com"
RIPT_URL = "https://nextjs.org/docs/app/api-reference/components/script" GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com"
PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Liv
PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html"
GALLERY_FORM_URL = "https://docs.google.com/forms/d/e/1FAIpQLSfB30hXB09CZ_H0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html"
HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_
PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods"
0Zi684w1y1zQSScyT3Qhd1mOUrAAIq9dj3Q/viewform?usp=sf_link" NPMJS_URL = "https://www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods"
ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+lab
HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/"
//www.npmjs.com/" SPLINE_URL = "https://github.com/splinetool/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/"
ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com
ANACONDA_URL = "https://docs.anaconda.com/free/navigator/"
ol/react-spline" ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev" DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/"
ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod
ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/"
OTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks" DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ" LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/"
# Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.d
ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments"
VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk" # Install urls. BUN_URL = "https://bun.sh" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare
# Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_K
SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/"
h" NEXTJS_URL = "https://nextjs.org" NODEJS_URL = "https://nodejs.org/en/" POETRY_URL = "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend
RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # P
RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/")
= "https://python-poetry.org/" PIPENV_URL = "https://pipenv.pypa.io/en/latest/" PIP_URL = "https://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/")
# Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50":
RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/")
s://pypi.org/project/pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats
DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}
GITHUB_STARS = 27000
pip/" VENV_URL = "https://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000
CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"pr
DISCORD_USERS = 7500
ps://docs.python.org/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500
MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits
CONTRIBUTORS = 200
/3/library/venv.html" VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200
MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250
MAX_FILE_SIZE_MB = 5
VIRTUALENV_URL = "https://virtualenv.pypa.io/en/latest/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5
MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"
MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024
st/" CONDA_URL = "https://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024
PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits
MAX_IMAGES_COUNT = 5
s://conda.io/" FASTAPI_URL = "https://fastapi.tiangolo.com" PYTHON_STANDARD_LIBRARY = "https://docs.python.org/3/library/index.html" PIP_DOCS = "https://pip.pypa.io/en/stable/installation/#supported-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5
CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", }
rted-methods" HOW_TO_INSTALL_PIP = "https://www.makeuseof.com/tag/install-pip-for-python/" ANACONDA_URL = "https://docs.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", }
BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22"
.anaconda.com/free/navigator/" ANACONDA_INSTALLATION = "https://docs.anaconda.com/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22"
SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue"
/free/anaconda/install/windows/" ANACONDA_SETUP_ENVIRONMENT = "https://docs.anaconda.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue"
SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode"
da.com/free/navigator/getting-started/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode"
REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
SPLINE_RUNTIME_VERSION = "1.5.5"
ted/#navigator-managing-environments" # Cloudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5"
REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
REFLEX_DOMAIN_URL = "https://reflex.dev/"
loudflare SCREENSHOT_BUCKET = "https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/"
TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
REFLEX_DOMAIN = "reflex.dev"
"https://pub-c14a5dcf674640a6b73fded32bad72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev"
# Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
TWITTER_CREATOR = "@getreflex"
72ca.r2.dev/" # Reflex Cloud Backend RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/") RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog
SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY")
LD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/") # Stats GITHUB_STARS = 27000 DISCORD_USERS = 7500 CONTRIBUTORS = 200 MAX_FILE_SIZE_MB = 5 MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024 MAX_IMAGES_COUNT = 5 PROMPT_MAP = { "Use an Image": "Build an app from a reference image", "Chat App": "A chat app hooked up to an LLM", "Live Dashboard": "Live stream data on a real-time dashboard", } CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22" BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue" SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode" SPLINE_RUNTIME_VERSION = "1.5.5" REFLEX_DOMAIN_URL = "https://reflex.dev/" REFLEX_DOMAIN = "reflex.dev" TWITTER_CREATOR = "@getreflex" # Posthog POSTHOG_API_KEY = os.getenv("POSTHOG_API_KEY") SLACK_DEMO_WEBHOOK_URL: str = os.environ.get("SLACK_DEMO_WEBHOOK_URL") # Pricing
PRO_TIERS_TABLE = { "Pro 25": {"price": 25, "credits": 500}, "Pro 50": {"price": 50, "credits": 1000}, "Pro 100": {"price": 100, "credits": 2000}, "Pro 250": {"price": 250, "credits": 5000}, "Pro 500": {"price": 500, "credits": 10000}, "Pro 750": {"price": 750, "credits": 15000}, "Pro 1000": {"price": 1000, "credits": 20000}, }
import reflex as rx from pcweb.styles.colors import c_color from pcweb.styles.fonts import base, code from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(sel
import flexdown
import flexdown
from pcweb.styles.colors import c_color from pcweb.styles.fonts import base, code from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Compon
import reflex as rx
import flexdown import reflex as rx
from pcweb.styles.fonts import base, code from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env)
from pcweb.styles.colors import c_color
import flexdown import reflex as rx from pcweb.styles.colors import c_color
from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self
from pcweb.styles.fonts import base, code
import flexdown import reflex as rx from pcweb.styles.colors import c_color from pcweb.styles.fonts import base, code
def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1])
from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, )
import flexdown import reflex as rx from pcweb.styles.colors import c_color from pcweb.styles.fonts import base, code from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, )
class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root(
def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, }
import flexdown import reflex as rx from pcweb.styles.colors import c_color from pcweb.styles.fonts import base, code from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code."""
ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger(
starting_indicator = "```md alert"
import flexdown import reflex as rx from pcweb.styles.colors import c_color from pcweb.styles.fonts import base, code from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert"
include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack(
ending_indicator = "```"
import flexdown import reflex as rx from pcweb.styles.colors import c_color from pcweb.styles.fonts import base, code from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```"
def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box(
include_indicators = True
styles.colors import c_color from pcweb.styles.fonts import base, code from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component:
args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match(
lines = self.get_lines(env)
eb.styles.fonts import base, code from pcweb.templates.docpage import ( code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env)
if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, (
args = lines[0].removeprefix(self.starting_indicator).split()
code_block_markdown, code_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split()
status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info",
if len(args) == 0: args = ["info"]
ode_block_markdown_dark, code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0:
status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info",
args = ["info"]
code_comp, definition, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"]
if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info",
status = args[0]
tion, docdemo, docdemobox, docgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0]
colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info", rx.icon( tag="info", size=18, margin_right
if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1])
cgraphing, doclink2, h1_comp_xd, h2_comp_xd, h3_comp_xd, h4_comp_xd, list_comp, ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"):
content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info", rx.icon( tag="info"
title = lines[1].strip("#").strip()
ordered_list_comp, text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else:
content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info", rx.icon( tag="info", size=18,
title = ""
text_comp, unordered_list_comp, ) def get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = ""
colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info", rx.icon( tag="info", size=18, margin_right
content = "\n".join(lines[1:-1])
ef get_code_style(color: str): return { "p": {"margin_y": "0px"}, "code": { "color": rx.color(color, 11), "border_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1])
color = colors.get(status, "blue") has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info", rx.icon( tag="info", size=18, margin_right=".5em", ), ), (
colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", }
order_radius": "4px", "border": f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", }
has_content = bool(content.strip()) if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info", rx.icon( tag="info", size=18, margin_right=".5em", ), ), (
color = colors.get(status, "blue")
f"1px solid {rx.color(color, 5)}", "background": rx.color(color, 4), **code, }, **base, } class AlertBlock(flexdown.blocks.MarkdownBlock): """A block that displays a component along with its code.""" starting_indicator = "```md alert" ending_indicator = "```" include_indicators = True def render(self, env) -> rx.Component: lines = self.get_lines(env) args = lines[0].removeprefix(self.starting_indicator).split() if len(args) == 0: args = ["info"] status = args[0] if lines[1].startswith("#"): title = lines[1].strip("#").strip() content = "\n".join(lines[2:-1]) else: title = "" content = "\n".join(lines[1:-1]) colors = { "info": "accent", "success": "grass", "warning": "amber", "error": "red", } color = colors.get(status, "blue")
if has_content: return rx.box( rx.accordion.root( rx.accordion.item( rx.accordion.header( rx.accordion.trigger( rx.hstack( rx.box( rx.match( status, ( "info", rx.icon( tag="info", size=18, margin_right=".5em", ), ), ( "success",
has_content = bool(content.strip())
="triangle_alert", size=18, margin_right=".5em" ), ), ("error", rx.icon(tag="ban", size=18, margin_right=".5em")), ), color=f"{rx.color(color, 11)}", ), markdown_with_shiki( title, color=f"{rx.color(color, 11)}", margin_y="0px", style=get_code_style(color), ), align_items="center", width="100%", spacing="1", padding=["16px", "24px"], ), border=f"1px solid {rx.color(color, 4)}", background_color=f"{rx.color(color, 3)}", border_radius="12px", margin_bottom="16px", margin_top="16px", width="100%", )
class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition" ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap=
class SectionBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```md section" ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].strip("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", )
("error", rx.icon(tag="ban", size=18, margin_right=".5em")), ), color=f"{rx.color(color, 11)}", ), markdown_with_shiki( title, color=f"{rx.color(color, 11)}", margin_y="0px", style=get_code_style(color), ), align_items="center", width="100%", spacing="1", padding=["16px", "24px"], ), border=f"1px solid {rx.color(color, 4)}", background_color=f"{rx.color(color, 3)}", border_radius="12px", margin_bottom="16px", margin_top="16px", width="100%", ) class SectionBlock(flexdown.blocks.Block): """A block that displays a component along with its code."""
ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].strip("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section),
starting_indicator = "```md section"
.icon(tag="ban", size=18, margin_right=".5em")), ), color=f"{rx.color(color, 11)}", ), markdown_with_shiki( title, color=f"{rx.color(color, 11)}", margin_y="0px", style=get_code_style(color), ), align_items="center", width="100%", spacing="1", padding=["16px", "24px"], ), border=f"1px solid {rx.color(color, 4)}", background_color=f"{rx.color(color, 3)}", border_radius="12px", margin_bottom="16px", margin_top="16px", width="100%", ) class SectionBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```md section"
def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].strip("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width
ending_indicator = "```"
in_right=".5em")), ), color=f"{rx.color(color, 11)}", ), markdown_with_shiki( title, color=f"{rx.color(color, 11)}", margin_y="0px", style=get_code_style(color), ), align_items="center", width="100%", spacing="1", padding=["16px", "24px"], ), border=f"1px solid {rx.color(color, 4)}", background_color=f"{rx.color(color, 3)}", border_radius="12px", margin_bottom="16px", margin_top="16px", width="100%", ) class SectionBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```md section" ending_indicator = "```"
class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition" ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap=
def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].strip("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", )
color=f"{rx.color(color, 11)}", ), markdown_with_shiki( title, color=f"{rx.color(color, 11)}", margin_y="0px", style=get_code_style(color), ), align_items="center", width="100%", spacing="1", padding=["16px", "24px"], ), border=f"1px solid {rx.color(color, 4)}", background_color=f"{rx.color(color, 3)}", border_radius="12px", margin_bottom="16px", margin_top="16px", width="100%", ) class SectionBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```md section" ending_indicator = "```" def render(self, env) -> rx.Component:
# Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].strip("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) fo
lines = self.get_lines(env)
n_with_shiki( title, color=f"{rx.color(color, 11)}", margin_y="0px", style=get_code_style(color), ), align_items="center", width="100%", spacing="1", padding=["16px", "24px"], ), border=f"1px solid {rx.color(color, 4)}", background_color=f"{rx.color(color, 3)}", border_radius="12px", margin_bottom="16px", margin_top="16px", width="100%", ) class SectionBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```md section" ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers.
header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].strip("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%",
header_indices = [i for i, line in enumerate(lines) if line.startswith("#")]
rgin_y="0px", style=get_code_style(color), ), align_items="center", width="100%", spacing="1", padding=["16px", "24px"], ), border=f"1px solid {rx.color(color, 4)}", background_color=f"{rx.color(color, 3)}", border_radius="12px", margin_bottom="16px", margin_top="16px", width="100%", ) class SectionBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```md section" ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines))
return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", ) class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition" ending_indicator = "
sections = [ ( lines[header_indices[i]].strip("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ]
ices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", )
class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.key
class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition" ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), )
) for i in range(len(header_indices) - 1) ] return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", ) class DefinitionBlock(flexdown.blocks.Block):
ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), )
starting_indicator = "```md definition"
ices) - 1) ] return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", ) class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition"
def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blo
ending_indicator = "```"
return rx.box( rx.vstack( *[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", ) class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition" ending_indicator = "```"
class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.key
def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), )
*[ rx.fragment( rx.text( rx.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", ) class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition" ending_indicator = "```" def render(self, env) -> rx.Component:
# Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing t
lines = self.get_lines(env)
x.text.span( header, font_weight="bold", ), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", ) class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition" ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers.
header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def rend
header_indices = [i for i, line in enumerate(lines) if line.startswith("#")]
), width="100%", ), rx.box( markdown(section), width="100%", ), ) for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", ) class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition" ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines))
defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswit
sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ]
for header, section in sections ], text_align="left", margin_y="1em", width="100%", ), border_left=f"1.5px {c_color('slate', 4)} solid", padding_left="1em", width="100%", align_items="center", ) class DefinitionBlock(flexdown.blocks.Block): starting_indicator = "```md definition" ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ]
return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] br
defs = [definition(title, content) for title, content in sections]
ending_indicator = "```" def render(self, env) -> rx.Component: lines = self.get_lines(env) # Split up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), )
class DemoBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```python demo" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]()
class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id)
up content into sections based on markdown headers. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code."""
ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + p
starting_indicator = "```python demo-only"
ders. header_indices = [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only"
include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp
ending_indicator = "```"
= [i for i, line in enumerate(lines) if line.startswith("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```"
theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp,
include_indicators = True
th("#")] header_indices.append(len(lines)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None
class DemoBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```python demo" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]()
def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id)
s)) sections = [ ( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component:
code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "
lines = self.get_lines(env)
( lines[header_indices[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env)
args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(
code = "\n".join(lines[1:-1])
[i]].removeprefix("#"), "\n".join(lines[header_indices[i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1])
exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id
args = lines[0].removeprefix(self.starting_indicator).split()
i] + 1 : header_indices[i + 1]]), ) for i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split()
comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eva
exec_mode = env.get("__exec", False)
i in range(len(header_indices) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = ""
if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id) class DemoBlock(flexdown.blocks.Block): """A b
for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None
) - 1) ] defs = [definition(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args:
else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id) class Dem
if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break
on(title, content) for title, content in sections] return rx.fragment( rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="):
break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", i
comp_id = arg.rsplit("id=")[-1]
rx.mobile_only(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else:
if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id) class DemoBlock(flexdown.blocks.Block): """A b
comp_id = None
ly(rx.vstack(*defs)), rx.tablet_and_desktop( rx.grid( *[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None
# Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id) class DemoBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```python demo" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__x
if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env)
*[rx.box(d) for d in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename)
elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id) class DemoBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```python demo" ending_indicator = "```" include_indicators = True the
if not exec_mode: comp = env[list(env.keys())[-1]]()
in defs], columns="2", width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode:
elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id) class DemoBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```python demo" ending_indicator = "```" include_indicators = True the
comp = env[list(env.keys())[-1]]()
width="100%", gap="1rem", margin_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]()
# Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id) class DemoBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```python demo" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__x
elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env)
_bottom="1em", ) ), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename)
elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id) class DemoBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```python demo" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else:
if not exec_mode: comp = env[list(env.keys())[-1]]() # Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp
), ) class DemoOnly(flexdown.blocks.Block): """A block that displays only a component demo without showing the code.""" starting_indicator = "```python demo-only" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefix(self.starting_indicator).split() exec_mode = env.get("__exec", False) comp = "" for arg in args: if arg.startswith("id="): comp_id = arg.rsplit("id=")[-1] break else: comp_id = None if "exec" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode: comp = env[list(env.keys())[-1]]() elif "graphing" in args: env["__xd"].exec(code, env, self.filename) if not exec_mode:
# Get all the code before the final "def". parts = code.rpartition("def") data, code = parts[0], parts[1] + parts[2] comp = docgraphing(code, comp=comp, data=data) return comp elif exec_mode: return comp elif "box" in args: comp = eval(code, env, env) return rx.box(comp, margin_bottom="1em", id=comp_id) else: comp = eval(code, env, env) # Return only the component without any code display return rx.box(comp, margin_bottom="1em", id=comp_id) class DemoBlock(flexdown.blocks.Block): """A block that displays a component along with its code.""" starting_indicator = "```python demo" ending_indicator = "```" include_indicators = True theme: str = None def render(self, env) -> rx.Component: lines = self.get_lines(env) code = "\n".join(lines[1:-1]) args = lines[0].removeprefi
comp = env[list(env.keys())[-1]]()