Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec8e70c

Browse files
committed
Disable auto-animate on figures with frames
1 parent 58090ce commit ec8e70c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/javascript/jupyterlab-plotly/src/javascript-renderer-extension.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ export class RenderedPlotly extends Widget implements IRenderMime.IRenderer {
127127
this.hideImage();
128128
this.update();
129129
if (frames) {
130-
Plotly.addFrames(this.node, frames).then(() => {
131-
Plotly.animate(this.node);
132-
});
130+
Plotly.addFrames(this.node, frames);
133131
}
134132
if (this.node.offsetWidth > 0 && this.node.offsetHeight > 0) {
135133
Plotly.toImage(plot, {

0 commit comments

Comments
 (0)