Getting Started example loads non-existent dataset

In the getting started example the code reads:

data = pd.read_csv('../assets/occupancy.csv')

But there is no occupancy.csv in the dataset; just the files datatest.txt and datatest2.txt

i’ve written a script to download and unzip the data file:

# https://svaderia.github.io/articles/downloading-and-unzipping-a-zipfile/

from io import BytesIO
from urllib.request import urlopen
from zipfile import ZipFile
zipurl = 'http://archive.ics.uci.edu/ml/machine-learning-databases/00357/occupancy_data.zip'
with urlopen(zipurl) as zipresp:
    with ZipFile(BytesIO(zipresp.read())) as zfile:
        zfile.extractall('.')

The documentation of panel is actually made up of a bunch of notebooks that are executed when a new version of the site is deployed. So the data must exist for the getting started page/notebook to run :upside_down_face: You’ll find this file here: https://github.com/holoviz/panel/tree/master/examples/assets

For the getting started page though we might just link to the full URL to make it easier for people to just copy/paste this code and try it.

I see. I dont have a background in Jupyter notebooks. I’ve been copy/pasting the code into real files

or you could provide something to dynamically grab the data like this.

I’m not familiar with jupyter. I tend to prefer things under source control that I can run from the shell.

Jupyter notebooks are also real files :smiley:

or you could provide something to dynamically grab the data like this.

I’d rather have code that focus on Panel itself in the getting started.