You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bokeh is an interactive charting library which seems a good fit with Shiny for Python. I've tried using pyecharts to no success so looking at this as an alternative. Is there a way to get it working?
from bokeh.plotting import figure, show
from shiny import App, render, ui
app_ui = ui.page_fluid(
ui.output_ui("bokeh_test")
)
def server(input, output, session):
@output
@render.ui
def bokeh_test():
# prepare some data
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
# create a new plot with a title and axis labels
p = figure(title="Simple line example",
x_axis_label='x', y_axis_label='y')
# add a line renderer with legend and line thickness to the plot
p.line(x, y, legend_label="Temp.", line_width=2)
return ui.HTML(show(p)) # Not working
app = App(app_ui, server, debug=True)
The text was updated successfully, but these errors were encountered:
Bokeh is an interactive charting library which seems a good fit with Shiny for Python. I've tried using pyecharts to no success so looking at this as an alternative. Is there a way to get it working?
The text was updated successfully, but these errors were encountered: