MCPcopy Index your code
hub / github.com/reflex-dev/reflex / notify_frontend

Function notify_frontend

reflex/utils/exec.py:192–201  ·  view source on GitHub ↗

Output a string notifying where the frontend is running. Args: url: The URL where the frontend is running. backend_present: Whether the backend is present.

(url: str, backend_present: bool)

Source from the content-addressed store, hash-verified

190
191
192def notify_frontend(url: str, backend_present: bool):
193 """Output a string notifying where the frontend is running.
194
195 Args:
196 url: The URL where the frontend is running.
197 backend_present: Whether the backend is present.
198 """
199 console.print(
200 f"App running at: [bold green]{url.rstrip('/')}/[/bold green]{' (Frontend-only mode)' if not backend_present else ''}"
201 )
202
203
204def notify_backend(host: str | None = None):

Callers 1

Calls 1

rstripMethod · 0.80

Tested by

no test coverage detected