hvplot icon indicating copy to clipboard operation
hvplot copied to clipboard

option to remove invisible output from importing hvplot.pandas/xarray

Open michaelaye opened this issue 2 years ago • 6 comments

Is your feature request related to a problem? Please describe.

It's a (small) annoyance that every import hvplot.pandas or import hvplot.xarray creates some kind of invisible return object, even when using the logo=False option.

In Jupyter notebook it's a very small annoyance, as it's just one line of invisible output (Figure 1). But inside vscode this one line becomes somehow several lines of output (Figure), which is a tad more annoying.

Describe the solution you'd like

An option to remove any output from importing holoviews/hvplot.

Describe alternatives you've considered

I tried logo=False to no avail.

Additional context

image image

I discovered an interesting dependence on order sequence:

  1. hv.extension("bokeh", logo=False)
  2. import hvplot.pandas

This version doesn't create output for the hvplot.pandas anymore.

  1. import hvplot.pandas
  2. hv.extension("bokeh", logo=False)

This version creates output for both calls.

Version info

hvplot: 0.9.2 holoviews: 1.18.3

michaelaye avatar Feb 21 '24 01:02 michaelaye

Hi @michaelaye, I agree, this isn't great.

I've asked if there's a way to hide these in VSCode (https://github.com/microsoft/vscode-jupyter/discussions/15303).

On a somewhat related note, I've actually been thinking that hvPlot should also display the little logo like HoloViews does. I'm not sure why logo=False was set originally, perhaps because hvPlot only supported the Bokeh backend. Now it supports Matplotlib and Plotly too it'd make more sense to add it. Making it more obvious also makes it less likely for users to delete it (which can cause various problems). @michaelaye would you be fine with hvPlot showing the logos on import and on hvplot.extension calls?

For reference:

  • https://github.com/jupyterlab/jupyterlab/issues/11888
  • https://github.com/holoviz/holoviews/issues/5154

maximlt avatar Mar 06 '24 09:03 maximlt

if it anyway creates a line of output, i guess it might as well just show what's actually going on, but a really quiet way of operating should be possible as well.

michaelaye avatar Mar 06 '24 15:03 michaelaye

Hi - was there ever a solution to this? it seems to low-key drive me nuts for whatever reason.

mg3146 avatar Apr 22 '24 12:04 mg3146

As far as I can see it is still an open issue on VSCode's side https://github.com/microsoft/vscode/issues/214886. Though I haven't dug into what hvPlot could do to improve that. My feeling is not much.

maximlt avatar Apr 22 '24 12:04 maximlt

yay, it's in the works! :)

michaelaye avatar Jun 11 '24 21:06 michaelaye

Thanks for pinging them! It'd be great to see this fixed!

maximlt avatar Jun 11 '24 21:06 maximlt