☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Seaborn with Bokeh

Community Support
Kaushik_Shakkari
Kaushik_Shakkari

Hello,

I wanted to run Seaborn.ViolinPlot in bokeh. I searched for it and came to know about bokeh.mpl.to_bokeh() function. But I am not able to import mpl from bokeh and this is what i am getting

“from bokeh import mpl
Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name mpl”

I have installed anaconda for python2 and updated to Bokeh latest version. Is the problem is with python 2 ?? please solve my problem.

Thank You
Happy Learning
Kaushik S

⌁   Link to post
Bryan
Bryan

Hi,

MPL support was deprecated and subsequently removed last year:

  https://bokeh.pydata.org/en/latest/docs/releases/0.12.9.html#deprecated-mpl-compatibility-removed

MPL compatibility relied on a third party library "mplexporter" that only ever partially worked, and eventually became abandoned. We did not have the resources to take on maintaining this outside project, especially since MPL compat never worked very well to begin with, so MPL support was dropped.

You could certainly draw this kind of plot in Bokeh directly, there's just not a high level API to do it automatically. The joyplot example has a similar kind of presentation:
  
  https://bokeh.pydata.org/en/latest/docs/gallery/joyplot.html

Thanks,

Bryan

···

On Mar 26, 2018, at 04:10, Kaushik Shakkari <kaushik.shakkari@gmail.com> wrote:

Hello,

I wanted to run Seaborn.ViolinPlot in bokeh. I searched for it and came to know about bokeh.mpl.to_bokeh() function. But I am not able to import mpl from bokeh and this is what i am getting

"from bokeh import mpl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name mpl"

I have installed anaconda for python2 and updated to Bokeh latest version. Is the problem is with python 2 ?? please solve my problem.

Thank You
Happy Learning
Kaushik S

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/65efd9ca-82e0-4a4f-b1ec-c48a4a0cc94b%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Qingfeng
Qingfeng

Hi,
I want to plot violin, but I don’t know how to draw the density map of violin, with the the factors as x range, and the link you provided above about joyplot example is no longer valid.
Thanks,
Qingfeng

⌁   Link to post

End of archived discussion · Replies are disabled