Source code for bokeh.command.subcommands.sampledata
#-----------------------------------------------------------------------------# Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors.# All rights reserved.## The full license is in the file LICENSE.txt, distributed with this software.#-----------------------------------------------------------------------------''' Download the Bokeh sample data sets to local disk.To download the Bokeh sample data sets, execute.. code-block:: sh bokeh sampledataon the command line.Executing this command is equivalent to running the Python code.. code-block:: python import bokeh.sampledata bokeh.sampledata.download()See :ref:`bokeh.sampledata` for more information on the specific data setsincluded in Bokeh's sample data.'''#-----------------------------------------------------------------------------# Boilerplate#-----------------------------------------------------------------------------from__future__importannotationsimportlogging# isort:skiplog=logging.getLogger(__name__)#-----------------------------------------------------------------------------# Imports#-----------------------------------------------------------------------------# Standard library importsfromargparseimportNamespace# Bokeh importsfrombokehimportsampledata# Bokeh importsfrom..subcommandimportSubcommand#-----------------------------------------------------------------------------# Globals and constants#-----------------------------------------------------------------------------__all__=('Sampledata',)#-----------------------------------------------------------------------------# General API#-----------------------------------------------------------------------------
[docs]classSampledata(Subcommand):''' Subcommand to download bokeh sample data sets. '''#: name for this subcommandname="sampledata"help="Download the bokeh sample data sets"