-
-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dealing with non-contiguous memoryviews as binary buffers #245
Comments
Let me add to the discussion that if say |
@maartenbreddels - you'd probably want to encode the logic for |
True, I think this can be solved at the serializer level, by sending the strides, and a new view of the data (the |
(summarizing a bit from gitter):
We can definitely improve the error handling so that it's a user call and not an async one that hits the error. I opened zeromq/pyzmq#1011 to prevent the socket from being closed due to an unhandled error (not sure why were doing that, but it's ancient code, probably from early tornado copy/paste). I also opened jupyter/jupyter_client#258 to check contiguous memoryviews in |
While testing the latest ipywidgets support for passing numpy arrays as binary buffers with metadata, I inadvertedly tried to assign a numpy slice to a
traittypes.Array
trait, and this custom function (lifted from pythreejs) then creates amemoryview
of a non-contiguousndarray
:which shortly after fails inside zmq:
This could be dealt with a number of places:
@minrk any opinions on the matter?
The text was updated successfully, but these errors were encountered: