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.

520 B
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */
import type { OutputMessage } from "./kernel/messages";

export function isMarimoErrorsMime(
  mime: OutputMessage["mimetype"] | undefined,
) {
  return mime === "application/vnd.marimo+error";
}

export function isTracebackMime(mime: OutputMessage["mimetype"] | undefined) {
  return mime === "application/vnd.marimo+traceback";
}

export function isErrorMime(mime: OutputMessage["mimetype"] | undefined) {
  return isMarimoErrorsMime(mime) || isTracebackMime(mime);
}