question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve the API of the hvPlotExplorer

See original GitHub issue

There are mostly suggestions that occurred to me while writing the release blog post:

  • by providing an easy entry point such as hvplot.explore(df) instead of having to instantiate the class hvPlotExplorer. I wasn’t convinced by the name hvPlotExplorer either but it’s fine if there’s an easy and short entry point instead.
  • by providing a way to get a handle on the plot. Should maybe get inspiration from Interactive that defines methods to get a handle of the various outputs it offers, such as .widgets(), .panel(), .holoviews(), etc… Here I’d say I expect a .plot() method at least.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
maximltcommented, Jun 24, 2022

Yes it’s interesting because I think when I read hvPlotExplorer I understand that it is to explore data, while in practice I would more likely use that component to edit a plot. In that case I already have an idea of the kind of plot I want to get, it’s just that the .hvplot API has so many parameters that building a plot from this component makes my life easier.

I remember seeing packages that offer a GUI to edit Matplotlib plots. Found one (not sure it’s the one I was looking for) that does that: plt-editor-tool. It has an accompanying user guide in PDF from which I’ve made this screenshot: image

The advantage of Explorer is that it’s general enough that it can be understood as data explorer and hvPlot’s API explorer. I also quite like, or even prefer, hvPlotEditor (hvplot.editor(df)).

1reaction
maximltcommented, Jul 14, 2022

Yes it will eventually be documented! Here’s how you could start experimenting with it, by running this in a notebook:

import pandas as pd
import numpy as np

from hvplot.ui import hvPlotExplorer
import hvplot.pandas

df = pd.DataFrame(np.random.rand(20, 2), columns=['a', 'b'])
hvPlotExplorer(df)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Explorer — hvPlot 0.8.2 documentation
The Explorer has been added to hvPlot in version 0.8.0 , and improved and ... you the possibility to explore both your data...
Read more >
Customization — hvPlot 0.8.2 documentation
The hvPlot API is closely modeled on the pandas plot API but also diverges in certain cases, either to improve consistency or to...
Read more >
Interactive — hvPlot 0.8.2 documentation
In this user guide we will explore how to use the .interactive API on xarray ... "warn", "ignore"}, default: "raise" What to do...
Read more >
interactive — hvPlot 0.8.2 documentation
interactive() is a solution to improve this rather cumbersome workflow, by which you replace the constant parameters in the pipeline by widgets (e.g....
Read more >
hvPlot 0.8.2 documentation
hvPlot provides a high-level plotting API built on HoloViews that ... becomes a valid statement while before that it would raise an AttributeError...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found