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.

fix: support running in FIPS-enabled environments (#3571)

Marco d. L. K.420e110a7bef
diff --git a/marimo/_plugins/ui/_impl/from_anywidget.py b/marimo/_plugins/ui/_impl/from_anywidget.py
index a4c34c5946..c53bdf71be 100644
--- a/marimo/_plugins/ui/_impl/from_anywidget.py
+++ b/marimo/_plugins/ui/_impl/from_anywidget.py
@@ -133,7 +133,9 @@ class anywidget(UIElement[T, T]):
_put_buffers(change, buffer_paths, buffers)
widget.set_state(change)
- js_hash: str = hashlib.md5(js.encode("utf-8")).hexdigest()
+ js_hash: str = hashlib.md5(
+ js.encode("utf-8"), usedforsecurity=False
+ ).hexdigest()
super().__init__(
component_name="marimo-anywidget",