martinRenou

Results 251 issues of martinRenou

The prefix path was resulting in `$PREFIX/bin/../`, this PR changes the prefix path to `$PREFIX/`

The following seems to fail with the latest ipycanvas version: ```python image_data = canvas.get_image_data(x=0, y=0, width=64, height=64) canvas2 = Canvas(width=64, height=64) canvas2.put_image_data( image_data, 0, 0 ) ``` See https://github.com/martinRenou/ipycanvas/discussions/271

bug

There is a race condition in the `Pattern` object creation from an `Image` widget. Setting `fill_style = pattern` just after creating the pattern results in the `fill_style` to not be...

bug

The slow part in ipycanvas is here when we use an Image widget: https://github.com/martinRenou/ipycanvas/blob/master/src/widget.ts#L786-L789 the slowness comes from this function https://github.com/martinRenou/ipycanvas/blob/658929381918dd89dc7f38a735fa7f9148a85f2b/src/widget.ts#L43-L62 which transforms the Image widget into an actual JavaScript...

enhancement

The fact that the drawings are not part of the widget model brings many issues: - ipycanvas does not work well with jupyter-sphinx and nbconvert - it will not work...

enhancement

If orjson is not installed, the plotting example fails with ``` ~/miniconda3/envs/tutorial/lib/python3.9/json/encoder.py in default(self, o) 177 178 """ --> 179 raise TypeError(f'Object of type {o.__class__.__name__} ' 180 f'is not JSON...

bug

As pointed out by @mwcraig in https://github.com/jupyter-widgets/tutorial/pull/129

We can improve `put_image_data` by sending a jpeg encoded value instead of the entire matrix: See this code in ipyvtk https://github.com/Kitware/ipyvtk-simple/blob/7a30b215c7d8dce5109330e8c4a197ff2e2c4426/ipyvtk_simple/viewer.py#L165-L171

enhancement