question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing executeAPICommand in `exports.Plots`

See original GitHub issue

Bug: I Upgraded Plotly to v2.2.0 and noticed the Plotly.Plots.executeAPICommand handler was no longer in the latest version.

As a User I’d like to see executeAPICommand returned to exports.Plots. This allows one to control multiple plots via a single Event.

File: dist/plotly.js Line: 155701

Is:

exports.Plots = {
    resize: Plots.resize,
    graphJson: Plots.graphJson,
    sendDataToCloud: Plots.sendDataToCloud,
};

Fix:

exports.Plots = {
    resize: Plots.resize,
    graphJson: Plots.graphJson,
    sendDataToCloud: Plots.sendDataToCloud,
    executeAPICommand: Plots.executeAPICommand
};

Example: try to execute Plotly.Plots.executeAPICommand(gd, method, args) to control a sibling Plot and notice the function is missing from the exports.Plots Object.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cid8600commented, Jul 1, 2021

Great call. That works the same. I appreciate you looking into it.

0reactions
alexcjohnsoncommented, Jul 1, 2021

I see. If you’re explicitly calling executeAPICommand like that, can you call the method directly? ie change:

Plotly.Plots.executeAPICommand(Plot2.current.el, step.method, step.args);

to:

Plotly[step.method](Plot2.current.el, ...step.args);
Read more comments on GitHub >

github_iconTop Results From Across the Web

Plots not shown in HTML export for default Plotly renderer #6999
Currently, there is no indication to the user that the HTML export is failing to produce the graphs with the default settings. Without...
Read more >
Import & Export Data - Documentation - Wandb
Use the Public API to export or update data that you have saved to W&B. ... Run wandb login on the command line...
Read more >
Save all plots already present in the panel of Rstudio
If on a fresh session I run plot(1:10);.SavedPlots) , I get the error mentioned above, so it doesn't seem like my plotting history...
Read more >
Exporting and Archiving — HoloViews v1.15.3
Exporting notebooks#. The hv.save function is useful when you want specific plots saved into specific files. Often, however, a notebook will contain an ......
Read more >
Export a REST API from API Gateway - AWS Documentation
With the Export API, you export an existing REST API by submitting a GET request, specifying the to-be-exported API as part of URL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found