PyDeck data update speed question #5961
|
Hi, I'm using the data update method described in the PyDeck Conway's life example with binary transfer to update data in a Scatterplot layer I have ~100,000 data points and I am able to update the colors of all my points (by interacting with a different Jupyter widget and selecting a different piece of metadata to color by) but it takes ~4 seconds for the PyDeck visual to update. Is that wait time expected and if not is there a way to optimize the speed? |
Replies: 2 comments 9 replies
|
Just to provide a little more background, I am calculating the scatterplot point colors based on metadata for >100,000 points. I want to be able to switch the coloring of my scatterplot between categorical colors and coloring based on some metadata value. Using deck.gl (see https://observablehq.com/@vizgen/deck-gl-jupyter-spatial-and-umap-v0-2-0) I can pass a function to getFillColor (see below) Since PyDeck does not allow passing a function to get_fill_color, I have to pre-calculate the colors and update the data attribute. I'm guessing that having to update the layer's data (including positions and colors) might be limiting the update speed (as opposed to passing less data to deck.gl and having the function calculate the colors). |
|
You may be hitting an issue where data is being serialized and deserialized as it is sent to the notebook. I believe there is a binary transport option, though @ajduberstein would need to confirm the details. |
You may be hitting an issue where data is being serialized and deserialized as it is sent to the notebook. I believe there is a binary transport option, though @ajduberstein would need to confirm the details.