Hi All,
I’m trying to store 25 odd datasources via store_objects. This is using streaming plots and a bokeh server.
This code below works fine, however it’s ugly and I’m sure there must be an easier way
cursession().store_objects(light_ds[‘0’], light_ds[‘1’], light_ds[‘2’], light_ds[‘3’], light_ds[‘4’],light_ds[‘5’],temperature_ds[‘0’], temperature_ds[‘1’], temperature_ds[‘2’],temperature_ds[‘3’], temperature_ds[‘4’], temperature_ds[‘5’],humidity_ds[‘0’], humidity_ds[‘1’], humidity_ds[‘2’], humidity_ds[‘3’],humidity_ds[‘4’], humidity_ds[‘5’],gas_ds[‘0’], gas_ds[‘1’], gas_ds[‘2’], gas_ds[‘3’], gas_ds[‘4’], gas_ds[‘5’],pressure_ds[‘0’], pressure_ds[‘1’], pressure_ds[‘2’], pressure_ds[‘3’],pressure_ds[‘4’], pressure_ds[‘5’])
``
``
This code doesn’t work. It throws a AttributeError: ‘list’ object has no attribute ‘references’
cursession().store_objects(light_ds.values(), temperature_ds.values(), humidity_ds.values(), gas_ds.values(), pressure_ds.values())
``
I’m guessing it return a list of values from each ds dict. Is there a way to return each of the values from the dict but not in a list format ?
Is there an elegant way to do this ?
I’m fairly new to python so apologies if I’m missing something simple.
Thanks !