Skip to content

save_image not working in python-kaleido v1 #2475

Description

@ZacharyHu0
> library(plotly)
+ fig <- plot_ly(z = ~volcano) %>% add_surface()
+ save_image(fig, "surface-plot.svg")
Error in `py_get_attr()`:
! AttributeError: module 'kaleido' has no attribute 'scopes'
Run `reticulate::py_last_error()` for details.
Hide Traceback
    ▆
 1. └─plotly::save_image(fig, "surface-plot.svg")
 2.   └─plotly::kaleido()
 3.     ├─kaleido$scopes
 4.     └─reticulate:::`$.python.builtin.module`(kaleido, "scopes")
 5.       └─reticulate::py_get_attr(x, name, FALSE)

I'm running the latest master branch version 4868a68f installed by:
remotes::install_github("plotly/plotly")

R=4.4.3
Python=3.12.12

I've noticed the merge
Add support for kaleido v1.0 (save_image()); fix CI #2447

It seems the merge #2447 didn't work as expected, since "kaleido.scopes.plotly has been removed in v1."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions