Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/marimo-team/marimo
/ hash_code
Function
hash_code
marimo/_utils/code.py:5–8 ·
view source on GitHub ↗
(code: str)
Source
from the content-addressed store, hash-verified
3
4
5
def
hash_code(code: str) -> str:
6
import
hashlib
7
8
return
hashlib.md5(code.encode(
"utf-8"
), usedforsecurity=False).hexdigest()
Callers
15
script_metadata_hash_from_filename
Function · 0.90
_hash_code
Function · 0.90
preview
Function · 0.90
_maybe_as_anywidget_html
Function · 0.90
convert_from_ir_to_notebook_v1
Function · 0.90
render_static_notebook
Function · 0.90
_hash_code_for_session_compare
Function · 0.90
export_as_html
Method · 0.90
__init__
Method · 0.90
setUp
Method · 0.90
test_static_notebook_template
Method · 0.90
test_static_notebook_template_no_filename
Method · 0.90
Calls
1
encode
Method · 0.80
Tested by
14
setUp
Method · 0.72
test_static_notebook_template
Method · 0.72
test_static_notebook_template_no_filename
Method · 0.72
test_static_notebook_template_no_code
Method · 0.72
test_static_notebook_template_with_css
Method · 0.72
test_static_notebook_template_with_head
Method · 0.72
test_static_notebook_template_with_custom_css_config
Method · 0.72
test_static_notebook_template_with_absolute_custom_css
Method · 0.72
test_static_notebook_template_with_nonexistent_custom_css
Method · 0.72
test_static_files_injection_prevention
Method · 0.72
test_static_malicious_filename_injection
Method · 0.72
test_static_malicious_code_content
Method · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…