This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
row = pn.Row('Empty') | |
select = pn.widgets.Select(options=['AAPL', …]) | |
def cb(event): | |
… | |
row[0] = bokeh_fig # Replace a component | |
select.param.watch(cb, 'value') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ticker = pn.widgets.Select(options=['AAPL', ...]) | |
@pn.depends(ticker.param.value) | |
def plot(ticker): | |
... | |
return plot_obj | |
pn.Row(ticker, plot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def plot(ticker): | |
... | |
return plot_object | |
pn.interact(plot, ticker=['AAPL', ...]) |
Sorry, this is too big to display.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from holoviews import Element, Store | |
from bokeh.models import Column | |
from holoviews.plotting.bokeh import ElementPlot | |
class BokehFigure(Element): | |
"""Wraps bokeh figure""" | |
class BokehFigurePlot(ElementPlot): | |
def initialize_plot(self, ranges=None, plot=None, plots=None, source=None): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright (c) 2019, Philipp Rudiger | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are | |
met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder