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.

simplify name (#129)

Akshay Agrawal5b00b88f0f38
diff --git a/marimo/_messaging/message_types.py b/marimo/_messaging/message_types.py
index 617f18aa1c..35fe7e0547 100644
--- a/marimo/_messaging/message_types.py
+++ b/marimo/_messaging/message_types.py
@@ -86,7 +86,10 @@ class VariableValue:
def __init__(self, name: str, value: object):
self.name = name
- self.datatype = str(type(value)) if value is not None else None
+ try:
+ self.datatype = type(value).__name__ if value is not None else None
+ except Exception:
+ self.datatype = None
try:
self.value = str(value)[:50]
except Exception: