Skip to content

saving bokeh plots and display on dash #610

Answered by kernc
GSav90 asked this question in Q&A
Discussion options

You must be logged in to vote

When in doubt, just look in the source. Backtest.plot() returns a Bokeh Figure object:

fig = gridplot(
plots,
ncols=1,
toolbar_location='right',
toolbar_options=dict(logo=None),
merge_tools=True,
**kwargs
)
show(fig, browser=None if open_browser else 'none')
return fig

which you can then load as HTML or maybe as an image. Best look to Dash documentation/community for how to do that?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@GSav90
Comment options

@kernc
Comment options

@GSav90
Comment options

Answer selected by GSav90
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants