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_U... |
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/view... | 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://... |
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_... | 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 = ... |
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://refl... | 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... |
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://ww... | 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_U... |
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"
#... | 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/r... |
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 = "ht... | 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/... |
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/... | 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_... |
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... | 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=... |
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_... | 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_IN... |
# 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_UR... | 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:... |
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/"
... | 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/... |
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/"
FA... | 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-57a4d... |
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.... | 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"
NEX... |
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://do... | 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/ap... |
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 = "h... | 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_U... |
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/... | 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/1F... |
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.mak... | 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/vi... |
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... | 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/"
... |
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/na... | 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... |
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://do... | 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... |
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_ENVIRONMEN... | 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://refle... |
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-ma... | 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.youtub... |
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-c14a5dcf6... | 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?... |
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... | 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"
... |
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/")... | 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 ... |
# 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
DISC... | 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 = "h... |
# 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_... | 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/... |
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 ... | 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_... |
# 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 ... | 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.... |
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 das... | 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/installa... |
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",
}
CONTRIBUT... | 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-metho... |
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://... | 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_P... |
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/... | 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.mak... |
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+... | 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 ... |
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_... | 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.anacon... |
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"
RE... | 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/... |
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_A... | 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.de... |
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.... | 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", "htt... |
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"... | 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", ... |
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 5... | 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/... |
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},
"Pr... | 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_U... |
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, "credi... | 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 = 20... |
# 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": {"pr... | 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_BYTE... |
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,... | 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",... | 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":... | |
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,
... | 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,
... | 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_li... | 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... | 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,
},
... | 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_... |
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,
... |
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... | 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,
},
**b... |
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,
... |
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].starts... | 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,
... |
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 ... | 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,
... |
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()
... | 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,
... |
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 = ""... | 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,
... |
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 = {
... | 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: s... |
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",... | 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": ... |
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",... | 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"},
... |
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": "... | 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": {
... |
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.accordi... | 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),
... |
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, "blu... | 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"... |
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:
... | 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),
... |
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.accordi... | 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,
},
**ba... |
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(
... | 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 = ... |
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(
... | 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 = "```"
... |
if has_content:
return rx.box(
rx.accordion.root(
rx.accordion.item(
rx.accordion.header(
rx.accordion.trigger(
rx.hstack(
rx.box(
... | 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)}",
),
... |
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 enumer... | 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 h... |
("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)... |
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))
sectio... | 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... |
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 = [
(
... | ending_indicator = "```" |
in_right=".5em")),
),
color=f"{rx.color(color, 11)}",
),
markdown_with_shiki(
title,
color=f"{rx.color(color, 11)}",
margin_y="0px",
sty... |
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 enumer... | 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 = [
(
... |
color=f"{rx.color(color, 11)}",
),
markdown_with_shiki(
title,
color=f"{rx.color(color, 11)}",
margin_y="0px",
style=get_code_style(color),
)... |
# 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[hea... | 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... |
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(
... | 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)}"... |
return rx.box(
rx.vstack(
*[
rx.fragment(
rx.text(
rx.text.span(
header,
font_weight="bold",
),
... | 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(
... |
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_... | 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... |
)
for i in range(len(header_indices) - 1)
]
return rx.box(
rx.vstack(
*[
rx.fragment(
rx.text(
rx.text.span(
header,
font_weig... |
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))
sectio... | starting_indicator = "```md definition" |
ices) - 1)
]
return rx.box(
rx.vstack(
*[
rx.fragment(
rx.text(
rx.text.span(
header,
font_weight="bold",
),
... |
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 = [
(
... | ending_indicator = "```" |
return rx.box(
rx.vstack(
*[
rx.fragment(
rx.text(
rx.text.span(
header,
font_weight="bold",
),
widt... |
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_... | 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 = [
(
... |
*[
rx.fragment(
rx.text(
rx.text.span(
header,
font_weight="bold",
),
width="100%",
),
... |
# 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(li... | lines = self.get_lines(env) |
x.text.span(
header,
font_weight="bold",
),
width="100%",
),
rx.box(
markdown(section),
width="1... |
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 = [definiti... | 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
],
... |
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="... | 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_item... |
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="1e... | 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... |
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)
... | 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_lin... |
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_indice... |
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)
... | 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]]),
... |
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 a... | 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... |
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... | 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 = [... |
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)
... | 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="):
... |
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 i... |
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... | 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.fragm... |
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
... | 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.vsta... |
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.filenam... | 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(... |
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:
... | 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],
... |
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.k... | 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",
... |
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_mo... | 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%",
... |
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)
... | 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",
)
... |
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.k... | 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... |
# 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_indic... | 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]... |
*[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 w... |
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... | 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."""
s... |
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... | 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"
... |
# 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_indic... | 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] + par... |
_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 ren... |
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(... | 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 ... |
),
)
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:
... |
# 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 "b... | comp = env[list(env.keys())[-1]]() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.