-
Notifications
You must be signed in to change notification settings - Fork 16
fix: DH-18073: ui.image convert bytes to str (#1167) #1199
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
fix: DH-18073: ui.image convert bytes to str (#1167) #1199
Conversation
mofojed
commented
Jun 26, 2025
- Picking feat: DH-18073: Static image creation for dx #1167 back to deephaven.ui v0.29
- Without this being in the deephaven.ui release branch, the part converting bytes to a string were missing
- DH-18703 failed because though we updated the plotly-express plugin, we failed to update the deephaven.ui plugin as well
Fixes [DH-18703](https://deephaven.atlassian.net/browse/DH-18703) Adds static image creation through an API similar to [Plotly's to_image](https://plotly.github.io/plotly.py-docs/generated/plotly.io.to_image.html) as well as a `to_image_uri` that can be used directly with a `ui.html.img` [DH-18703]: https://deephaven.atlassian.net/browse/DH-18703?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
|
ui docs preview (Available for 14 days) |
|
plotly-express docs preview (Available for 14 days) |
- Kaleido just released v1.0.0 yesterday (June 19, 2025), which contains breaking changes and is only compatible with plotly>=6.1.1 - We use plotly <6.0.0 (until we finish updating to the latest) - Fix up our docs and setup.cfg to be more explicit about which version of kaleido to install.
|
ui docs preview (Available for 14 days) |
|
plotly-express docs preview (Available for 14 days) |
|
|
||
| Convert a `DeephavenFigure` to a static image using the `to_image_uri` method. | ||
| In order to use this feature, you need to have the `kaleido` package installed. | ||
| Either install will `all` extras or install `kaleido` separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Either install will `all` extras or install `kaleido` separately. | |
| Either install with `all` extras or install `kaleido` separately. |
| ## Theme Template | ||
|
|
||
| Customize the theme with the `template` argument. | ||
| Default options are `"plotly"`, `"plotly_white"`, `"plotly_dark"`, `"ggplot2"`, `"seaborn"`, and `"simple_white"`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be nice to do -
"Default options are:
"plotly""plotly_white"
and so on
|
@margaretkennedy I probably should have removed you from this review - this is a cherry-pick back to a release branch... you already reviewed these docs when they went into main: #1167 Made a PR to main for your suggestions: #1200 |