hvplot icon indicating copy to clipboard operation
hvplot copied to clipboard

Make plot_code a Parameter

Open MarcSkovMadsen opened this issue 3 years ago • 4 comments

Request

Change plot_code from a function to a parameter. Or document how to automatically update the plot code in some output cell in a notebook.

Motivation

I love that the fact that I can export my explorer work as code.

But I would like the code to be able to just update automatically because

  • Its friction that I have to rerun a cell to get the code.
  • The output of the plot_code() might not be in sync with the explorer selections if I ran that function some time ago.
  • I want to be able to easily deploy an explorer Panel data app to my users such that the starting point for a visualization is just a web page that can take us a long way, then we export the code and continue if/ when needed.

image

MarcSkovMadsen avatar Aug 29 '22 04:08 MarcSkovMadsen

Another approach I've suggested is to have a button to copy the code for the current plot to the clipboard; would that be useful in your case?

jbednar avatar Aug 29 '22 23:08 jbednar

That would also be great and solve my use cases, if it was part of the explorer.

MarcSkovMadsen avatar Aug 30 '22 00:08 MarcSkovMadsen

Yes adding a button is a good idea (a button to save the plot as a file too, I think that was the original suggestion).

maximlt avatar Sep 09 '22 07:09 maximlt

Right, an export tab would be nice with options to export to file and to clipboard.

philippjfr avatar Sep 09 '22 17:09 philippjfr