Make a html bokeh chart from a pandas pie chart

output_file(‘testdonutbokeh.html’)

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

show(mpl.to_bokeh(name=“gimmeapie”))

``

hi

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/testdonutbokeh.py’, wdir=‘C:/Users/pauldufosse/Anaconda/Lib/site-packages/spyderlib’)

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

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

File “C:/Users/pauldufosse/Anaconda/Lib/site-packages/spyderlib/testdonutbokeh.py”, line 34, in
show(mpl.to_bokeh(name=“gimmeapie”))

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\mpl.py”, line 452, in to_bokeh
exporter.run(fig)

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\mplexporter\exporter.py”, line 50, in run
self.crawl_fig(fig)

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\mplexporter\exporter.py”, line 117, in crawl_fig
self.crawl_ax(ax)

File “C:\Users\pauldufosse\Anaconda\lib\site-packages\bokeh\mplexporter\exporter.py”, line 122, in crawl_ax
props=utils.get_axes_properties(ax)):

File “C:\Users\pauldufosse\Anaconda\lib\contextlib.py”, line 17, in enter
return self.gen.next()

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

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

IndexError: list index out of range

``