Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are JavaScript callbacks possible in Plotly or Dash?

I know that Plotly to some extent provides interactivity like changing colours, tabs or using dropdowns to change the plot. But the code must be always written in Python and I can't use there "pure" JavaScript.

I want to create highly interactive, portable, stand-alone HTML pages (no server required) that can be send by email to others, opened and viewed locally on their computers.

So I need that my HTML page contains all the data, manipulates that data and provides interactivity through JavaScript, all on its own.

Is this possible with Plotly or Dash?

like image 958
Dekrion Avatar asked Sep 14 '25 05:09

Dekrion


1 Answers

Yes this is now possible. However it sounds like you would be better off learning something other than Dash, such as React (a Javascript framework). There are better ways to share an app than through mail though...

like image 149
wdoppenberg Avatar answered Sep 16 '25 13:09

wdoppenberg