mberk / betfairviz

Create visualisations of Betfair order books
MIT License
33 stars 11 forks source link

Dashboard is broken when running on Colaboratory #18

Open mberk opened 3 years ago

mberk commented 3 years ago

I've experienced the following issues:

  1. Dashboard does not display at all. This seems to be related to the plotly graph. If I remove the graph entirely from the dashboard then everything works. However, I can still create the graph by itself so it's some kind of combination of creating the graph in the context of ipywidgets
  2. Slider does not work. This seems to be a problem with using jslink instead of link. See the following issue for a workaround: https://github.com/googlecolab/colabtools/issues/1612
  3. Button icons are not displayed. See this issues for a workaround: https://github.com/googlecolab/colabtools/issues/1302
mberk commented 3 years ago

See the following on SO for how to detect when code is running on Colaboratory: https://stackoverflow.com/questions/53581278/test-if-notebook-is-running-on-google-colab

mberk commented 3 years ago

I don't think it will be possible to get the book percentage graph working in Colaboratory (for now). Some relevant issues are:

mberk commented 2 years ago

Reviewing the above issues, it sounds like it's now possible to use plotly in Colaboratory so this needs another look