You may have some images of your model output, and you'd like to have an interface to step through it. It's so easy with Panel in ~20 lines of code (see thread)
#python #dataviz #datascience
import panel as pn pn.extension(sizing_mode="stretch_width") URL_FMT = "https://www.tropicaltidbits.com/analysis/models/gfs/2023060600/gfs_mslp_pcpn_frzn_us_{i}.png" # populate (tab_name, url) tuples urls = [(f"{6 * i:02d}H", URL_FMT.format(i=i)) for i in range(1, 18)] # build widgets tabs = pn.Tabs(*urls, align="center") player = pn.widgets.Player( name="Time", start=0, end=len(urls) - 1, value=0, loop_policy="loop", interval=100, align="center", ) # link widgets player.jslink(tabs, value="active", bidirectional=True) # create dashboard pn.Column(tabs, player)
Share this post
112. Build your own tropicaltidbits.com-like interface for private model output
Share this post
You may have some images of your model output, and you'd like to have an interface to step through it. It's so easy with Panel in ~20 lines of code (see thread)
#python #dataviz #datascience