☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Copy to clipboard functionality

Community Supportbokehjs
Bryan
Bryan

@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.

⌁   Link to post
mateusz
mateusz

We already have such tool (though it’s a mode of the save tool, not a tool on its own; this will change in bokeh 3.0). You can use the tool by pressing on save tool’s icon and clicking on copy to clipboard item in the context menu. The menu will not appear if copy to clipboard functionality is not available in the web browser (e.g. Firefox needs a configuration flag to be set to enable this feature, see Clipboard API - Web APIs | MDN).

⌁   Link to post

End of archived discussion · Replies are disabled