docs/guides/lint_rules/rules/unparsable_cells.md
šØ Breaking ā Not Fixable
MB001: Cell contains unparsable code.
Identifies cells that cannot be parsed into valid Python AST nodes, indicating fundamental syntax or encoding problems that prevent the notebook from being loaded.
Unparsable cells prevent the notebook from running as a script and will throw errors when executed in notebook mode. While marimo can still open the notebook, these cells cannot be run until the parsing issues are resolved.
Problematic:
# Cell with encoding issues or corrupt data
x = 1 \x00\x01\x02 # Binary data in source
Problematic:
# Cell with fundamental syntax errors
def func(
# Missing closing parenthesis and body
Solution:
# Fix syntax errors and encoding issues
def func():
return 42