How to export Bokeh view to Matplotlib?
<p><p>
I have a Flask web app that uses Bokeh to deliver interactive charts. My end goal is to export whatever the current Bokeh view is to Matplotlib (so that I can create a printable pdf file after that). This would include how the current axes look like after the user zooms and pans. Is there a way to export that data so that I can create those Matplotlib charts behind the scenes? (Printing the page directly or printing to pdf results in low-quality and blurred charts.)<p>
Thanks!</p>

<p>No, currently there is no way to export bokeh to matplotlib. Actually you can do it otherway. You can create matplotlib plot, save, and after that you can  <a href="http://bokeh.pydata.org/en/latest/docs/user_guide/compat.html#bokeh.mpl.to_bokeh" rel="nofollow">export matplotlib to bokeh</a>. I think this is the best option. Eventually you can export bokeh plot as png but it still would not solve problem with quality </p>

python matplotlib flask pdf-generation bokeh