bokeh.sampledata¶
The sampledata
module can be used to download data sets used in Bokeh
examples.
The simplest way to download the data is to use the execute the command line program:
bokeh sampledata
Alternatively, the download
function described below may be called
programmatically.
>>> import bokeh.sampledata
>>> bokeh.sampledata.download()
By default, data is downloaded and stored to a directory $HOME/.bokeh/data
.
(The directory is created if it does not already exist.) Bokeh looks for
a YAML configuration file at $HOME/.bokeh/config
. The YAML key
sampledata_dir
can be set to the absolute path of a directory where
the data should be stored. For instance adding the following line to the
config file:
sampledata_dir: /tmp/bokeh_data
will cause the sample data to be stored in /tmp/bokeh_data
.