We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47f84d5 commit 623fa5aCopy full SHA for 623fa5a
2 files changed
marimo/_plugins/ui/_impl/altair_chart.py
@@ -330,7 +330,7 @@ def __init__(
330
# Make a copy
331
original_chart = chart
332
chart = chart.copy()
333
- self._chart = chart
+ self._chart = original_chart
334
335
if not isinstance(chart, (alt.TopLevelMixin)):
336
raise ValueError(
tests/_plugins/ui/_impl/test_altair_chart.py
@@ -625,7 +625,7 @@ def test_does_not_modify_original() -> None:
625
combined1 = alt1 | alt2
626
combined2 = altair_chart(alt1) | altair_chart(alt2)
627
628
- assert combined1 == combined2._chart
+ assert combined1.to_dict() == combined2._chart.to_dict()
629
630
631
@pytest.mark.skipif(not HAS_DEPS, reason="optional dependencies not installed")
0 commit comments