Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

feat: indicate server side installations (#8998)

Dylan Madisettieade4fe06cd8
diff --git a/frontend/src/components/editor/package-alert.tsx b/frontend/src/components/editor/package-alert.tsx
index 84a4bd49ec..00d060b657 100644
--- a/frontend/src/components/editor/package-alert.tsx
+++ b/frontend/src/components/editor/package-alert.tsx
@@ -76,6 +76,21 @@ function buildPackageSpecifier(name: string, extras: string[]): string {
return `${name}[${extras.join(",")}]`;
}
+const SourceBadge: React.FC<{ source?: "kernel" | "server" }> = ({
+ source,
+}) => {
+ if (source !== "server") {
+ return null;
+ }
+ return (
+ <Tooltip content="Installing into the server environment, not the notebook kernel">
+ <span className="ml-2 text-xs font-normal border border-current rounded px-1 py-0.5 opacity-60">
+ server
+ </span>
+ </Tooltip>
+ );
+};
+
export const PackageAlert: React.FC = () => {
const { packageAlert, packageLogs } = useAlerts();
const { clearPackageAlert } = useAlertActions();
@@ -105,6 +120,7 @@ export const PackageAlert: React.FC = () => {
<span className="font-bold text-lg flex items-center mb-2">
<PackageXIcon className="w-5 h-5 inline-block mr-2" />
Missing packages
+ <SourceBadge source={packageAlert.source} />
</span>
<Button
variant="text"
@@ -217,6 +233,7 @@ export const PackageAlert: React.FC = () => {
<span className="font-bold text-lg flex items-center mb-2">
{titleIcon}
{title}
+ <SourceBadge source={packageAlert.source} />
</span>
<Button
variant="text"
diff --git a/frontend/src/core/alerts/state.ts b/frontend/src/core/alerts/state.ts
index 663056e05f..349403d955 100644
--- a/frontend/src/core/alerts/state.ts
+++ b/frontend/src/core/alerts/state.ts
@@ -19,6 +19,7 @@ export interface InstallingPackageAlert {
packages: PackageInstallationStatus;
logs?: { [key: string]: string } | null;
log_status?: "append" | "start" | "done" | null;
+ source?: "kernel" | "server";
}
export interface StartupLogsAlert {
diff --git a/marimo/_messaging/notification.py b/marimo/_messaging/notification.py
index 64d98e52d5..f202814ab1 100644
--- a/marimo/_messaging/notification.py
+++ b/marimo/_messaging/notification.py
@@ -373,12 +373,16 @@ class InstallingPackageAlertNotification(
packages: Package name to status (queued/installing/installed/failed).
logs: Optional streaming logs per package.
log_status: Log stream status (append/start/done).
+ source: Which Python environment packages are installed into.
+ "kernel" (default) installs in the kernel's venv; "server"
+ installs in the server's own Python env.
"""
name: ClassVar[str] = "installing-package-alert"
packages: PackageStatusType
logs: Optional[dict[str, str]] = None # package name -> log content
log_status: Optional[Literal["append", "start", "done"]] = None
+ source: Literal["kernel", "server"] = "kernel"
class ReconnectedNotification(Notification, tag="reconnected"):
diff --git a/marimo/_runtime/runtime.py b/marimo/_runtime/runtime.py
index b05dfb6777..158b56018b 100644
--- a/marimo/_runtime/runtime.py
+++ b/marimo/_runtime/runtime.py
@@ -3292,7 +3292,9 @@ class PackagesCallbacks:
pkg: "queued" for pkg in missing_packages
}
broadcast_notification(
- InstallingPackageAlertNotification(packages=package_statuses)
+ InstallingPackageAlertNotification(
+ packages=package_statuses, source=request.source
+ )
)
def create_log_callback(pkg: str) -> LogCallback:
@@ -3302,6 +3304,7 @@ class PackagesCallbacks:
packages=package_statuses,
logs={pkg: log_line},
log_status="append",
+ source=request.source,
),
)
@@ -3314,7 +3317,9 @@ class PackagesCallbacks:
continue
package_statuses[pkg] = "installing"
broadcast_notification(
- InstallingPackageAlertNotification(packages=package_statuses)
+ InstallingPackageAlertNotification(
+ packages=package_statuses, source=request.source
+ )
)
# Send initial "start" log
@@ -3323,6 +3328,7 @@ class PackagesCallbacks:
packages=package_statuses,
logs={pkg: f"Installing {pkg}...\n"},
log_status="start",
+ source=request.source,
)
)
@@ -3337,6 +3343,7 @@ class PackagesCallbacks:
packages=package_statuses,
logs={pkg: f"Successfully installed {pkg}\n"},
log_status="done",
+ source=request.source,
),
)
else:
@@ -3349,6 +3356,7 @@ class PackagesCallbacks:
packages=package_statuses,
logs={pkg: f"Failed to install {pkg}\n"},
log_status="done",
+ source=request.source,
),
)
diff --git a/marimo/_schemas/generated/notifications.yaml b/marimo/_schemas/generated/notifications.yaml
index de94f429e3..9fe9d7ede0 100644
--- a/marimo/_schemas/generated/notifications.yaml
+++ b/marimo/_schemas/generated/notifications.yaml
@@ -2,9 +2,9 @@
components:
schemas:
AlertNotification:
- description: "User-facing alert message.\n\nAttributes:\n title: Alert title.\n\
- \ description: Alert body (may contain HTML).\n variant: Visual variant\
- \ (e.g., \"danger\")."
+ description: "User-facing alert message.\n\n Attributes:\n title:\
+ \ Alert title.\n description: Alert body (may contain HTML).\n \
+ \ variant: Visual variant (e.g., \"danger\")."
properties:
description:
type: string
@@ -26,10 +26,10 @@ components:
title: AlertNotification
type: object
BannerNotification:
- description: "Persistent banner message at top of notebook.\n\nAttributes:\n\
- \ title: Banner title.\n description: Banner body (may contain HTML).\n\
- \ variant: Visual variant (e.g., \"danger\").\n action: Optional user\
- \ action (e.g., \"restart\")."
+ description: "Persistent banner message at top of notebook.\n\n Attributes:\n\
+ \ title: Banner title.\n description: Banner body (may contain\
+ \ HTML).\n variant: Visual variant (e.g., \"danger\").\n action:\
+ \ Optional user action (e.g., \"restart\")."
properties:
action:
anyOf:
@@ -57,7 +57,7 @@ components:
title: BannerNotification
type: object
CacheClearedNotification:
- description: "Execution cache cleared result.\n\nAttributes:\n bytes_freed:\
+ description: "Execution cache cleared result.\n\n Attributes:\n bytes_freed:\
\ Bytes freed by clearing cache."
properties:
bytes_freed:
@@ -71,10 +71,10 @@ components:
title: CacheClearedNotification
type: object
CacheInfoNotification:
- description: "Execution cache statistics.\n\nAttributes:\n hits: Cache hits.\n\
- \ misses: Cache misses.\n time: Time spent on cache operations (seconds).\n\
- \ disk_to_free: Disk space that could be freed (bytes).\n disk_total:\
- \ Total disk space used (bytes)."
+ description: "Execution cache statistics.\n\n Attributes:\n hits:\
+ \ Cache hits.\n misses: Cache misses.\n time: Time spent on\
+ \ cache operations (seconds).\n disk_to_free: Disk space that could\
+ \ be freed (bytes).\n disk_total: Total disk space used (bytes)."
properties:
disk_to_free:
type: integer
@@ -129,16 +129,16 @@ components:
title: CellConfig
type: object
CellNotification:
- description: "Updates a cell's state in the frontend.\n\nOnly fields that are\
- \ set (not None) will update the cell state.\nOmitting a field leaves that\
- \ aspect unchanged.\n\nAttributes:\n cell_id: Unique identifier of the\
- \ cell being updated.\n output: Cell's output. Use CellOutput.empty() to\
- \ clear.\n console: Console messages. Single/list appends, [] clears, None\
- \ unchanged.\n status: Execution status (idle/running/stale/queued/disabled-transitively).\n\
- \ stale_inputs: Whether cell has stale inputs from changed dependencies.\n\
- \ run_id: Execution run ID for tracing. Auto-set from context.\n serialization:\
- \ Serialization status (TopLevelHints).\n timestamp: Creation timestamp,\
- \ auto-set."
+ description: "Updates a cell's state in the frontend.\n\n Only fields that\
+ \ are set (not None) will update the cell state.\n Omitting a field leaves\
+ \ that aspect unchanged.\n\n Attributes:\n cell_id: Unique identifier\
+ \ of the cell being updated.\n output: Cell's output. Use CellOutput.empty()\
+ \ to clear.\n console: Console messages. Single/list appends, [] clears,\
+ \ None unchanged.\n status: Execution status (idle/running/stale/queued/disabled-transitively).\n\
+ \ stale_inputs: Whether cell has stale inputs from changed dependencies.\n\
+ \ run_id: Execution run ID for tracing. Auto-set from context.\n \
+ \ serialization: Serialization status (TopLevelHints).\n timestamp:\
+ \ Creation timestamp, auto-set."
properties:
cell_id:
type: string
@@ -366,9 +366,9 @@ components:
title: CompletionOption
type: object
CompletionResultNotification:
- description: "Code completion result from language server.\n\nAttributes:\n\
- \ completion_id: Request ID this responds to.\n prefix_length: Length\
- \ of prefix to replace.\n options: Completion options to display."
+ description: "Code completion result from language server.\n\n Attributes:\n\
+ \ completion_id: Request ID this responds to.\n prefix_length:\
+ \ Length of prefix to replace.\n options: Completion options to display."
properties:
completion_id:
type: string
@@ -412,9 +412,9 @@ components:
title: CycleError
type: object
DataColumnPreviewNotification:
- description: "Data column preview with stats and visualization.\n\nInherits\
- \ all ColumnPreview attributes.\n\nAttributes:\n table_name: Table containing\
- \ the column.\n column_name: Column being previewed."
+ description: "Data column preview with stats and visualization.\n\n Inherits\
+ \ all ColumnPreview attributes.\n\n Attributes:\n table_name: Table\
+ \ containing the column.\n column_name: Column being previewed."
properties:
chart_code:
anyOf:
@@ -498,8 +498,8 @@ components:
title: DataSourceConnection
type: object
DataSourceConnectionsNotification:
- description: "Available data source connections for SQL cells.\n\nAttributes:\n\
- \ connections: Available data source connections."
+ description: "Available data source connections for SQL cells.\n\n Attributes:\n\
+ \ connections: Available data source connections."
properties:
connections:
items:
@@ -642,9 +642,9 @@ components:
title: Database
type: object
DatasetsNotification:
- description: "Available datasets for data explorer.\n\nAttributes:\n tables:\
- \ Available data tables/datasets.\n clear_channel: If set, clears tables\
- \ from this channel first."
+ description: "Available datasets for data explorer.\n\n Attributes:\n \
+ \ tables: Available data tables/datasets.\n clear_channel: If set,\
+ \ clears tables from this channel first."
properties:
clear_channel:
anyOf:
@@ -668,8 +668,8 @@ components:
title: DatasetsNotification
type: object
FocusCellNotification:
- description: "Focuses a cell (kiosk mode).\n\nAttributes:\n cell_id: Cell\
- \ to focus."
+ description: "Focuses a cell (kiosk mode).\n\n Attributes:\n cell_id:\
+ \ Cell to focus."
properties:
cell_id:
type: string
@@ -682,9 +682,9 @@ components:
title: FocusCellNotification
type: object
FunctionCallResultNotification:
- description: "Result of a frontend-initiated function call.\n\nAttributes:\n\
- \ function_call_id: ID matching the original request.\n return_value:\
- \ Function return value as JSON.\n status: Human-readable success/failure\
+ description: "Result of a frontend-initiated function call.\n\n Attributes:\n\
+ \ function_call_id: ID matching the original request.\n return_value:\
+ \ Function return value as JSON.\n status: Human-readable success/failure\
\ status."
properties:
function_call_id:
@@ -703,9 +703,9 @@ components:
title: FunctionCallResultNotification
type: object
HumanReadableStatus:
- description: "Human-readable status for operation results.\n\nAttributes:\n\
- \ code: Status code (\"ok\" or \"error\").\n title: Optional short title.\n\
- \ message: Optional detailed description."
+ description: "Human-readable status for operation results.\n\n Attributes:\n\
+ \ code: Status code (\"ok\" or \"error\").\n title: Optional\
+ \ short title.\n message: Optional detailed description."
properties:
code:
enum:
@@ -743,10 +743,13 @@ components:
title: ImportStarError
type: object
InstallingPackageAlertNotification:
- description: "Package installation progress with streaming logs.\n\nAttributes:\n\
- \ packages: Package name to status (queued/installing/installed/failed).\n\
- \ logs: Optional streaming logs per package.\n log_status: Log stream\
- \ status (append/start/done)."
+ description: "Package installation progress with streaming logs.\n\n Attributes:\n\
+ \ packages: Package name to status (queued/installing/installed/failed).\n\
+ \ logs: Optional streaming logs per package.\n log_status: Log\
+ \ stream status (append/start/done).\n source: Which Python environment\
+ \ packages are installed into.\n \"kernel\" (default) installs\
+ \ in the kernel's venv; \"server\"\n installs in the server's\
+ \ own Python env."
properties:
log_status:
anyOf:
@@ -774,6 +777,11 @@ components:
- installing
- queued
type: object
+ source:
+ default: kernel
+ enum:
+ - kernel
+ - server
required:
- op
- packages
@@ -790,11 +798,11 @@ components:
title: InterruptedNotification
type: object
KernelCapabilitiesNotification:
- description: "Kernel capabilities detected at startup.\n\nAll fields auto-detected\
- \ in __post_init__.\n\nAttributes:\n terminal: Terminal access (unavailable\
- \ on Windows/Pyodide).\n pylsp: Python Language Server Protocol installed.\n\
- \ ty: ty type checker installed.\n basedpyright: basedpyright type checker\
- \ installed."
+ description: "Kernel capabilities detected at startup.\n\n All fields auto-detected\
+ \ in __post_init__.\n\n Attributes:\n terminal: Terminal access\
+ \ (unavailable on Windows/Pyodide).\n pylsp: Python Language Server\
+ \ Protocol installed.\n ty: ty type checker installed.\n basedpyright:\
+ \ basedpyright type checker installed."
properties:
basedpyright:
default: false
@@ -816,15 +824,16 @@ components:
type: object
KernelReadyNotification:
description: "Kernel ready for execution. First notification sent at startup.\n\
- \nAttributes:\n cell_ids: Cell IDs in order.\n codes: Source code for\
- \ each cell.\n names: Cell names/titles.\n layout: Notebook layout config.\n\
- \ configs: Per-cell configuration.\n resumed: Whether resumed from previous\
- \ session.\n ui_values: Previous UI element values if resumed.\n last_executed_code:\
- \ Last executed code per cell if resumed.\n last_execution_time: Last execution\
- \ time per cell if resumed.\n app_config: Application configuration.\n\
- \ kiosk: Whether running in kiosk mode.\n capabilities: Available kernel\
- \ capabilities.\n auto_instantiated: Whether cells already executed (run\
- \ mode)."
+ \n Attributes:\n cell_ids: Cell IDs in order.\n codes: Source\
+ \ code for each cell.\n names: Cell names/titles.\n layout:\
+ \ Notebook layout config.\n configs: Per-cell configuration.\n \
+ \ resumed: Whether resumed from previous session.\n ui_values: Previous\
+ \ UI element values if resumed.\n last_executed_code: Last executed\
+ \ code per cell if resumed.\n last_execution_time: Last execution time\
+ \ per cell if resumed.\n app_config: Application configuration.\n \
+ \ kiosk: Whether running in kiosk mode.\n capabilities: Available\
+ \ kernel capabilities.\n auto_instantiated: Whether cells already executed\
+ \ (run mode)."
properties:
app_config:
$ref: '#/components/schemas/_AppConfig'
@@ -1065,12 +1074,12 @@ components:
title: MarimoSyntaxError
type: object
MissingPackageAlertNotification:
- description: "Alert for missing packages with install option.\n\nAttributes:\n\
- \ packages: Missing package names.\n isolated: Whether auto-install\
- \ is possible in this environment.\n source: Which Python environment to\
- \ install into. \"kernel\" (default)\n installs in the kernel's\
- \ venv; \"server\" installs in the\n server's own Python env (e.g.\
- \ for formatter tools like ruff)."
+ description: "Alert for missing packages with install option.\n\n Attributes:\n\
+ \ packages: Missing package names.\n isolated: Whether auto-install\
+ \ is possible in this environment.\n source: Which Python environment\
+ \ to install into. \"kernel\" (default)\n installs in the kernel's\
+ \ venv; \"server\" installs in the\n server's own Python env\
+ \ (e.g. for formatter tools like ruff)."
properties:
isolated:
type: boolean
@@ -1110,8 +1119,8 @@ components:
title: MultipleDefinitionError
type: object
QueryParamsAppendNotification:
- description: "Appends value to URL query parameter.\n\nAttributes:\n key:\
- \ Query parameter key.\n value: Value to append."
+ description: "Appends value to URL query parameter.\n\n Attributes:\n \
+ \ key: Query parameter key.\n value: Value to append."
properties:
key:
type: string
@@ -1137,9 +1146,9 @@ components:
title: QueryParamsClearNotification
type: object
QueryParamsDeleteNotification:
- description: "Deletes URL query parameter values.\n\nAttributes:\n key: Query\
- \ parameter key.\n value: Specific value to delete. If None, deletes all\
- \ values for key."
+ description: "Deletes URL query parameter values.\n\n Attributes:\n \
+ \ key: Query parameter key.\n value: Specific value to delete. If\
+ \ None, deletes all values for key."
properties:
key:
type: string
@@ -1157,8 +1166,8 @@ components:
title: QueryParamsDeleteNotification
type: object
QueryParamsSetNotification:
- description: "Sets URL query parameter, replacing existing values.\n\nAttributes:\n\
- \ key: Query parameter key.\n value: Value(s) to set."
+ description: "Sets URL query parameter, replacing existing values.\n\n Attributes:\n\
+ \ key: Query parameter key.\n value: Value(s) to set."
properties:
key:
type: string
@@ -1198,9 +1207,9 @@ components:
title: ReloadNotification
type: object
RemoveUIElementsNotification:
- description: "Removes UI elements associated with a cell.\n\nSent when cell\
- \ is re-executed or deleted.\n\nAttributes:\n cell_id: Cell whose UI elements\
- \ should be removed."
+ description: "Removes UI elements associated with a cell.\n\n Sent when cell\
+ \ is re-executed or deleted.\n\n Attributes:\n cell_id: Cell whose\
+ \ UI elements should be removed."
properties:
cell_id:
type: string
@@ -1213,8 +1222,8 @@ components:
title: RemoveUIElementsNotification
type: object
SQLDatabaseMetadata:
- description: "SQL database metadata.\n\nAttributes:\n connection: Connection\
- \ identifier.\n database: Database name."
+ description: "SQL database metadata.\n\n Attributes:\n connection:\
+ \ Connection identifier.\n database: Database name."
properties:
connection:
type: string
@@ -1226,9 +1235,9 @@ components:
title: SQLDatabaseMetadata
type: object
SQLMetadata:
- description: "SQL database and schema metadata.\n\nAttributes:\n connection:\
- \ Connection identifier.\n database: Database name.\n schema: Schema\
- \ name."
+ description: "SQL database and schema metadata.\n\n Attributes:\n \
+ \ connection: Connection identifier.\n database: Database name.\n \
+ \ schema: Schema name."
properties:
connection:
type: string
@@ -1247,9 +1256,10 @@ components:
title: SQLMetadata
type: object
SQLSchemaListPreviewNotification:
- description: "List of SQL schemas in a database.\n\nAttributes:\n request_id:\
- \ Request ID this responds to.\n metadata: Database and schema metadata.\n\
- \ schemas: Schemas in database.\n error: Error message if failed."
+ description: "List of SQL schemas in a database.\n\n Attributes:\n \
+ \ request_id: Request ID this responds to.\n metadata: Database and\
+ \ schema metadata.\n schemas: Schemas in database.\n error:\
+ \ Error message if failed."
properties:
error:
anyOf:
@@ -1275,9 +1285,9 @@ components:
title: SQLSchemaListPreviewNotification
type: object
SQLTableListPreviewNotification:
- description: "List of SQL tables in a schema.\n\nAttributes:\n request_id:\
- \ Request ID this responds to.\n metadata: Database and schema metadata.\n\
- \ tables: Tables in schema.\n error: Error message if failed."
+ description: "List of SQL tables in a schema.\n\n Attributes:\n request_id:\
+ \ Request ID this responds to.\n metadata: Database and schema metadata.\n\
+ \ tables: Tables in schema.\n error: Error message if failed."
properties:
error:
anyOf:
@@ -1303,9 +1313,10 @@ components:
title: SQLTableListPreviewNotification
type: object
SQLTablePreviewNotification:
- description: "SQL table preview.\n\nAttributes:\n request_id: Request ID\
- \ this responds to.\n metadata: Database and schema metadata.\n table:\
- \ Table data (None if error).\n error: Error message if failed."
+ description: "SQL table preview.\n\n Attributes:\n request_id: Request\
+ \ ID this responds to.\n metadata: Database and schema metadata.\n\
+ \ table: Table data (None if error).\n error: Error message\
+ \ if failed."
properties:
error:
anyOf:
@@ -1344,9 +1355,9 @@ components:
title: Schema
type: object
SecretKeysResultNotification:
- description: "Available secret keys from secret providers.\n\nAttributes:\n\
- \ request_id: Request ID this responds to.\n secrets: Secret keys with\
- \ provider info."
+ description: "Available secret keys from secret providers.\n\n Attributes:\n\
+ \ request_id: Request ID this responds to.\n secrets: Secret\
+ \ keys with provider info."
properties:
op:
enum:
@@ -1459,8 +1470,8 @@ components:
title: SqlParseResult
type: object
StartupLogsNotification:
- description: "Streaming kernel startup logs.\n\nAttributes:\n content: Log\
- \ content to display.\n status: Stream status (start/append/done)."
+ description: "Streaming kernel startup logs.\n\n Attributes:\n content:\
+ \ Log content to display.\n status: Stream status (start/append/done)."
properties:
content:
type: string
@@ -1479,9 +1490,9 @@ components:
title: StartupLogsNotification
type: object
UIElementMessageNotification:
- description: "Sends a message to a UI element/widget.\n\nAttributes:\n ui_element:\
- \ UI element identifier.\n message: Message payload as dictionary.\n \
- \ buffers: Optional binary buffers for large data."
+ description: "Sends a message to a UI element/widget.\n\n Attributes:\n \
+ \ ui_element: UI element identifier.\n message: Message payload\
+ \ as dictionary.\n buffers: Optional binary buffers for large data."
properties:
buffers:
anyOf:
@@ -1522,9 +1533,10 @@ components:
title: UnknownError
type: object
ValidateSQLResultNotification:
- description: "SQL query validation result.\n\nAttributes:\n request_id: Request\
- \ ID this responds to.\n parse_result: SQL parsing result.\n validate_result:\
- \ Catalog validation result.\n error: Error message if failed."
+ description: "SQL query validation result.\n\n Attributes:\n request_id:\
+ \ Request ID this responds to.\n parse_result: SQL parsing result.\n\
+ \ validate_result: Catalog validation result.\n error: Error\
+ \ message if failed."
properties:
error:
anyOf:
@@ -1552,9 +1564,9 @@ components:
title: ValidateSQLResultNotification
type: object
VariableDeclarationNotification:
- description: "Variable declaration and usage for dataflow graph.\n\nAttributes:\n\
- \ name: Variable name.\n declared_by: Cell IDs that define this variable.\n\
- \ used_by: Cell IDs that use this variable."
+ description: "Variable declaration and usage for dataflow graph.\n\n Attributes:\n\
+ \ name: Variable name.\n declared_by: Cell IDs that define this\
+ \ variable.\n used_by: Cell IDs that use this variable."
properties:
declared_by:
items:
@@ -1573,9 +1585,9 @@ components:
title: VariableDeclarationNotification
type: object
VariableValue:
- description: "Variable value and type for variables panel.\n\nAttributes:\n\
- \ name: Variable name.\n value: String representation of value.\n \
- \ datatype: Data type as string."
+ description: "Variable value and type for variables panel.\n\n Attributes:\n\
+ \ name: Variable name.\n value: String representation of value.\n\
+ \ datatype: Data type as string."
properties:
datatype:
anyOf:
@@ -1594,8 +1606,8 @@ components:
title: VariableValue
type: object
VariableValuesNotification:
- description: "Current variable values.\n\nAttributes:\n variables: Variables\
- \ with current values and types."
+ description: "Current variable values.\n\n Attributes:\n variables:\
+ \ Variables with current values and types."
properties:
op:
enum:
@@ -1610,8 +1622,8 @@ components:
title: VariableValuesNotification
type: object
VariablesNotification:
- description: "Variable dataflow graph.\n\nAttributes:\n variables: Variable\
- \ declarations and usage."
+ description: "Variable dataflow graph.\n\n Attributes:\n variables:\
+ \ Variable declarations and usage."
properties:
op:
enum:
@@ -1626,12 +1638,8 @@ components:
title: VariablesNotification
type: object
_AppConfig:
- description: 'Program-specific configuration.
-
-
- Configuration for frontends or runtimes that is specific to
-
- a single marimo program.'
+ description: "Program-specific configuration.\n\n Configuration for frontends\
+ \ or runtimes that is specific to\n a single marimo program."
properties:
app_title:
anyOf:
diff --git a/packages/openapi/api.yaml b/packages/openapi/api.yaml
index fe967f1333..2fa1ce09aa 100644
--- a/packages/openapi/api.yaml
+++ b/packages/openapi/api.yaml
@@ -2149,7 +2149,10 @@ components:
description: "Package installation progress with streaming logs.\n\n Attributes:\n\
\ packages: Package name to status (queued/installing/installed/failed).\n\
\ logs: Optional streaming logs per package.\n log_status: Log\
- \ stream status (append/start/done)."
+ \ stream status (append/start/done).\n source: Which Python environment\
+ \ packages are installed into.\n \"kernel\" (default) installs\
+ \ in the kernel's venv; \"server\"\n installs in the server's\
+ \ own Python env."
properties:
log_status:
anyOf:
@@ -2177,6 +2180,11 @@ components:
- installing
- queued
type: object
+ source:
+ default: kernel
+ enum:
+ - kernel
+ - server
required:
- op
- packages
diff --git a/packages/openapi/src/api.ts b/packages/openapi/src/api.ts
index 2c33344d56..081a60be3d 100644
--- a/packages/openapi/src/api.ts
+++ b/packages/openapi/src/api.ts
@@ -4622,6 +4622,9 @@ export interface components {
* packages: Package name to status (queued/installing/installed/failed).
* logs: Optional streaming logs per package.
* log_status: Log stream status (append/start/done).
+ * source: Which Python environment packages are installed into.
+ * "kernel" (default) installs in the kernel's venv; "server"
+ * installs in the server's own Python env.
*/
InstallingPackageAlertNotification: {
/** @default null */
@@ -4635,6 +4638,11 @@ export interface components {
packages: {
[key: string]: "failed" | "installed" | "installing" | "queued";
};
+ /**
+ * @default kernel
+ * @enum {unknown}
+ */
+ source?: "kernel" | "server";
};
/** InstantiateNotebookRequest */
InstantiateNotebookRequest: {