hopsworks.app #
App #
Represents a Hopsworks App (Streamlit application).
app_url property #
app_url: str | None
URL to the Streamlit UI, or None if not serving.
Example
apps = project.get_app_api()
app = apps.get_app("my_dashboard")
if app.serving:
print(app.app_url)
delete #
delete()
Delete the app entirely.
This stops the app if running and removes the job configuration.
get_logs #
Get stdout and stderr logs for the latest app execution.
| RETURNS | DESCRIPTION |
|---|---|
dict[str, str] | Dictionary with |
| RAISES | DESCRIPTION |
|---|---|
hopsworks.client.exceptions.JobExecutionException | If the app has no execution. |
hopsworks.client.exceptions.RestAPIError | If the backend encounters an error when retrieving logs. |
get_url #
get_url() -> str
Get URL to view the app in Hopsworks UI.
| RETURNS | DESCRIPTION |
|---|---|
str | The URL to the app page in the Hopsworks UI. |
run #
Start the app.
Example
apps = project.get_app_api()
app = apps.get_app("my_dashboard")
app.run()
print(app.app_url)
| PARAMETER | DESCRIPTION |
|---|---|
await_serving | If True, wait until the app is serving before returning. TYPE: |
| RETURNS | DESCRIPTION |
|---|---|
App | Self, with updated state. |
| RAISES | DESCRIPTION |
|---|---|
hopsworks.client.exceptions.JobExecutionException | If the app fails to start or the serving timeout is exceeded. |