Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
0
843k
import reflex as rx config = rx.Config( app_name="app", )
"""Welcome to Reflex! This file outlines the steps to create a basic app.""" import reflex as rx from rxconfig import config class State(rx.State): """The app state.""" ... def index() -> rx.Component: # Welcome Page (Index) return rx.container( rx.color_mode.button(position="top-right"),...
import reflex as rx config = rx.Config(app_name="app")
import reflex as rx from app.state import ProjectileState from app.components.input_form import input_form from app.components.trajectory_plot import ( trajectory_plot_component, ) from rxconfig import config def index() -> rx.Component: return rx.el.div( rx.el.div( rx.el.h1( ...
import reflex as rx import numpy as np from typing import TypedDict, List as TypingList class TrajectoryPoint(TypedDict): x: float y: float class ProjectileState(rx.State): initial_velocity: float = 20.0 launch_angle_deg: float = 45.0 initial_height: float = 0.0 gravity: float = 9.81 tim...
import reflex as rx from app.state import ProjectileState def input_form() -> rx.Component: return rx.el.form( rx.el.div( rx.el.label( "Initial Velocity (m/s):", class_name="block text-sm font-medium text-gray-700", ), rx.el.input( ...
import reflex as rx from app.state import ProjectileState def trajectory_plot_component() -> rx.Component: return rx.el.div( rx.recharts.scatter_chart( rx.recharts.cartesian_grid( stroke_dasharray="3 3", stroke="#cccccc" ), rx.recharts.x_axis( ...
import reflex as rx config = rx.Config( app_name="A", )
"""Welcome to Reflex! This file outlines the steps to create a basic app.""" import reflex as rx from rxconfig import config class State(rx.State): """The app state.""" ... def index() -> rx.Component: # Welcome Page (Index) return rx.container( rx.color_mode.button(position="top-right"),...
import abc import collections import collections.abc import contextlib import functools import inspect import operator import sys import types as _types import typing import warnings __all__ = [ # Super-special typing primitives. 'Any', 'ClassVar', 'Concatenate', 'Final', 'LiteralString', '...
# mypy: allow-untyped-defs, allow-untyped-calls from __future__ import annotations import os from typing import List from typing import Optional from typing import TYPE_CHECKING from typing import Union from . import autogenerate as autogen from . import util from .runtime.environment import EnvironmentContext from ...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
3