Skip to content

Commit addfd47

Browse files
committed
Try rendering as png
1 parent b931fd5 commit addfd47

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/python/plotly/plotly/tests/test_optional/test_graph_objs/test_performance.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_performance_b64_scatter3d():
3434
)
3535
]
3636
)
37-
fig.show()
37+
fig.show(renderer="png", engine="kaleido")
3838
list_time_elapsed = time.time() - list_start
3939

4040
# Test the performance with base64 arrays
@@ -51,13 +51,12 @@ def test_performance_b64_scatter3d():
5151
)
5252
]
5353
)
54-
fig.show()
55-
# Then close the window
54+
fig.show(renderer="png", engine="kaleido")
5655

5756
np_time_elapsed = time.time() - np_start
5857

5958
# np should be faster than lists
60-
assert (np_time_elapsed / list_time_elapsed) < 0.65
59+
assert (np_time_elapsed / list_time_elapsed) < 0.7
6160

6261

6362
# FLOAT_TEST_CASES = [

0 commit comments

Comments
 (0)