Jupyter labs output to front end

Hi all,

I’ve been playing with Jupyter labs and have got some interesting output that I would like to use on my HomeAssistant frontend, ideally I would like to show :

  • Some numeric values I’ve calculated in python
  • A plot (or maybe an image of a plot)

This information doesn’t have to be realtime, it could be refreshed nightly.

Any suggestions on how I could go about this? (I’m quite a novice with home assistant)

Some more background on the project: I have hooked a temperature sensor up to my hot water tank, which is heated by both solar and an oil boiler. By monitoring the the rate of temperature change over time I can work out what is going on (either being heated by solar, heated by oil, inactive/cooling, or in use (usually showering). From this I can then calculate measures (which is what I want to show on the front end):

Time spent in each state
Heat gained from solar vs heat gained from oil
Heat lost to cooling
Oil used (based on burn rate of boiler + time spent heating)

The classified data for the past 2 days looks like this (this is the kind of plot I’d like to show on the front end):