import intake import hvplot.pandas intake.output_notebook() list(intake.registry) source = intake.open_csv('https://timeseries.weebly.com/uploads/' '2/1/0/8/21086414/sea_ice.csv') # access the data basic details source.discover() # load and use data df = source.read() df.head() # try some plotting df.hvplot(kind='line', x='Time', y= ['Arctic', 'Antarctica'], width=700, height=500) source.hvplot(kind='line', x='Time', y= ['Arctic', 'Antarctica'], width=700, height=500) # presciption for the source we made print(source.yaml()) %%writefile sea.yaml sources: sea_ice: args: urlpath: "https://timeseries.weebly.com/uploads/2/1/0/8/21086414/sea_ice.csv" description: "Polar sea ice cover" driver: csv metadata: plots: basic: kind: line x: Time y: [Arctic, Antarctica] width: 700 height: 500 # load that prescription cat = intake.open_catalog('sea.yaml') # plot is automatic cat.sea_ice.plot.basic() # put catalog in public place for sharing cat = intake.open_catalog('https://raw.githubusercontent.com/intake/' 'intake-examples/master/tutorial/sea.yaml') # load data as before cat.sea_ice.read().head() # the cat as a data source print(cat.yaml())