Copy to clipboard functionality

We have copy to clipboard functionality in bokehjs but it resides under save tools in context menu as shown in image below:

and explained in :

Is there a way to display the copy to clipboard tool out of save tool’s context menu?

if not how can i create a custom action with copy to clipboard functionality ?

@adamwarlock you could either:

  • Add a Button outside the plot, or
  • Add a CustomAction to get a toolbar icon

Either way, you would have a few lines of JS code that mimic what the existing SaveTool does for copying to the clipboard:

It will be easier to help you if you can share what code you have already attempted.