Skip to content

Commit

Permalink
set actions to false and prevent re-post-init
Browse files Browse the repository at this point in the history
  • Loading branch information
Light2Dark committed Dec 22, 2024
1 parent fbe256a commit cf12519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/tracing/tracing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const Chart: React.FC<ChartProps> = (props: ChartProps) => {
width={props.width}
height={props.height}
signalListeners={props.signalListeners}
actions={false}
/>
</div>
);
Expand Down
2 changes: 2 additions & 0 deletions marimo/_messaging/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ class CellOp(Op):
timestamp: float = field(default_factory=lambda: time.time())

def __post_init__(self) -> None:
if self.run_id is not None:
return
try:
self.run_id = RUN_ID_CTX.get()
except LookupError:
Expand Down

0 comments on commit cf12519

Please sign in to comment.