Skip to content

Is it possible to run multiple instances of FigureResampler? #306

Answered by jonasvdd
dbdq asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dbdq,

Thank you for your kind words.

I am missing some context in your question on how you utilize plotly-resampler. Given that you are not able to spawn multiple figures, I suppose that you utilize the automatic (i.e., the register_plotly_resampler) mode.

However, It is certainly possible to run multiple plotly-resampler figures within a same dash-app or notebook instance.

  • To achieve this with a dash app: see this example
  • To achieve this in a notebook: you need to utilize the manual mode; and wrap the go.Figure with a FigureResampler and call show_dash for which you pass the network port on which the app runs as an argument.
import plotly.graph_objects as go
from plotly_resampler i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dbdq
Comment options

Answer selected by dbdq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants