Make a html bokeh chart from a pandas pie chart


donut = testpie.plot(kind=‘pie’, explode=(0, 0.2, 0, 0), shadow=True, startangle=50)




i’m having difficult issueswith the mpl.to_bokeh method

The error is going to far from my comprehension…

The testpie data is


Courrier 176770
Telephone 80344
Mobile 78241
Email 23886
Name: Client Renault/Dacia, dtype: int64

And I mention that the .plot method is OK when I’m just printing it in the iPython notebook

When I want to make it a html doc with to_bokeh:

the error is:

Traceback (most recent call last):

File “”, line 1, in
runfile(‘C:/Users/pauldufosse/Anaconda/Lib/site-packages/spyderlib/’, wdir=‘C:/Users/pauldufosse/Anaconda/Lib/site-packages/spyderlib’)

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\spyderlib\widgets\externalshell\”, line 685, in runfile
execfile(filename, namespace)

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\spyderlib\widgets\externalshell\”, line 71, in execfile
exec(compile(scripttext, filename, ‘exec’), glob, loc)

File “C:/Users/pauldufosse/Anaconda/Lib/site-packages/spyderlib/”, line 34, in

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\”, line 452, in to_bokeh

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\mplexporter\”, line 50, in run

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\mplexporter\”, line 117, in crawl_fig

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\mplexporter\”, line 122, in crawl_ax

File “C:\Users\pauldufosse\Anaconda\lib\”, line 17, in enter

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\mplexporter\renderers\”, line 57, in draw_axes
self.open_axes(ax=ax, props=props)

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\”, line 116, in open_axes
self.grid = ax.get_xgridlines()[0]

IndexError: list index out of range