In Holoviz Panel, how to select a file and make its contents available for interactive graphs?

110 views Asked by At

I want to replicate this example from the documentation of Holoviz Panel: https://panel-gallery.pyviz.demo.anaconda.com/hvplot_explorer. That is, I want to:

  • Have a dropdown menu in which I can select multiple data sources.
  • Have an upload button such that I can add my own data source. This uploaded source should also be added to the dropdown.
  • Have a plot that shows the data selected in the dropdown menu.

Currently I have this:

import pandas as pd
import panel as pn

inputFile = pn.widgets.FileInput(accept=".csv")

I can access the input file in VS Code (in my jupyter notebook), but how do I update the dashboard I am building with this data?

0

There are 0 answers