import holoviews as hv from holoviews import opts from holoviews import streams hv.extension('bokeh') path = hv.Path([]) freehand = streams.FreehandDraw(source=path, num_objects=3, styles={'line_color': ['red', 'green', 'blue']}) path.opts( opts.Path(active_tools=['freehand_draw'], height=400, line_width=10, width=400)) freehand.data freehand.element