Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wrong offset when memoryview format is non-byte (#3206)
Browse files Browse the repository at this point in the history
the offset should be in bytes, not elements. See also bokeh/ipywidgets_bokeh#46 (comment)
maartenbreddels authored and philippjfr committed Mar 26, 2022
1 parent d14ef35 commit 592434a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/io/ipywidget.py
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ def send(self, stream, msg_type, content=None, parent=None, ident=None, buffers=
offsets = [start]

for buffer in buffers[:-1]:
start += len(buffer)
start += memoryview(buffer).nbytes
offsets.append(start)

u32 = lambda n: n.to_bytes(4, "big")

0 comments on commit 592434a

Please sign in to comment.