From a24b4a63ab4442cc043c14b9d87a2b7ec9c49647 Mon Sep 17 00:00:00 2001 From: Akshay Agrawal Date: Fri, 8 Mar 2024 08:40:00 -0800 Subject: [PATCH] address review comments from previous pr --- frontend/src/core/pyodide/worker/types.ts | 1 - marimo/_pyodide/pyodide_session.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/core/pyodide/worker/types.ts b/frontend/src/core/pyodide/worker/types.ts index 674fb30ce71..4d385248f2b 100644 --- a/frontend/src/core/pyodide/worker/types.ts +++ b/frontend/src/core/pyodide/worker/types.ts @@ -18,7 +18,6 @@ import type { export interface RawBridge { put_control_request(operation: object): Promise; put_input(input: string): Promise; - interrupt(buffer: Uint8Array): Promise; code_complete(request: CodeCompletionRequest): Promise; read_code(): Promise<{ contents: string }>; format(request: FormatRequest): Promise; diff --git a/marimo/_pyodide/pyodide_session.py b/marimo/_pyodide/pyodide_session.py index a5f0ecc03ff..2926220b176 100644 --- a/marimo/_pyodide/pyodide_session.py +++ b/marimo/_pyodide/pyodide_session.py @@ -291,6 +291,10 @@ def launch_pyodide_kernel( configs: dict[CellId_t, CellConfig], app_metadata: AppMetadata, ) -> RestartableTask: + from marimo._output.formatters.formatters import register_formatters + + register_formatters() + LOGGER.debug("Launching kernel") # Create communication channels