robmarkcole / HASS-data-detective

Explore and analyse your Home Assistant data
https://data.home-assistant.io/
MIT License
183 stars 34 forks source link

Checkout jupyterlite #141

Open robmarkcole opened 2 years ago

robmarkcole commented 2 years ago

Can run entirely in the browser?

robmarkcole commented 2 years ago

Looks feasible, import packages like

import piplite
await piplite.install("pandas")
robmarkcole commented 2 years ago

Hit error on install: ValueError: Couldn't find a pure Python 3 wheel for 'hass-data-detective'.

Read: https://pyodide.org/en/stable/development/new-packages.html

Check which dependencies are not available

pandas>=1.1.4 AVAILABLE ruamel.yaml>=0.15.78 NOT AVAILABLE SQLAlchemy>=1.2.8 AVAILABLE pytz

After commenting out all the yaml related stuff I can import from URL potentially, but for postgres I hit: ValueError: Couldn't find a pure Python 3 wheel for 'psycopg2-binary'

robmarkcole commented 2 years ago

Clearly would require a fair bit of effort to get this going, not obvious benefits over binder so park for now