[Feature Request] add support for `application/vnd.holoviews_load.v0+json`
Opened this issue · 10 comments
Hello,
I am trying to run df.plot()
on a pandas Dataframe and view the plot with Molten.
Only text/plain
and text/html
options are returned by MoltenEvaluateLine
, and :MoltenOpenInBrowser
shows a blank page.
Is there a specific way I should be running plotting code in order for this to work?
If there's a text/html
output it should work. I can check it out
I highly doubt that it's Lunarvim interfering.
do you have you config on github that you could link for me to take a look at?
Aha, I found what was missing from the init function:
vim.g.molten_image_provider = "image.nvim"
Now plots that come back as image/png
work!
Though I guess there's still the original problem. I often use hvplot which returns 'text/html' instead of 'image/png', and I'm still getting nothing from :MoltenOpenInBrowser
.
I also see nothing when trying to run the following code:
import hvplot.pandas # noqa
from bokeh.sampledata import iris
iris = iris.flowers
hvplot.plotting.andrews_curves(
iris,
class_column='species',
samples=20,
There are a few hints in the browser console:
And that in conjunction with this from their website:
Makes me think that we need to do something extra for this to work...
This is the special mimetype that we could support: application/vnd.holoviews_load.v0+json
. I'm not sure which javascript library we need to load, or where to get it from or anything like that honestly. Do you have any idea where to look?
I could look into it