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.

enable copy paste for inline examples

See original GitHub issue

We need to add some CSS and JS so the Python inline examples (the ones that start with >>> can be copied). This is how a non-Python example looks like:

image

If the user clicks on the window, it’ll copy the code. This is how a Python example looks like:

image

We should add the window-like CSS and the copy functionality - the CSS and JS is already there, we just need to connect them with these other types of examples.

Source: https://docs.ploomber.io/en/latest/api/_modules/tasks/ploomber.tasks.PythonCallable.html#ploomber.tasks.PythonCallable

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
edublancascommented, Jul 8, 2022

Yes, only doctests (any code block that starts with >>>)

0reactions
e1hacommented, Jul 8, 2022

For automating the copy paste and window-like CSS and js does that only apply to the doctests?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copy & Paste & The Web
Have you ever tried to copy and paste some text only to find it ... Normally the mouseup will deselect the text and...
Read more >
Inline Copy
When a data protection operation is initiated of a subclient whose storage policy has an Inline Copy enabled, two copies of the data...
Read more >
How to configure the copy and paste behavior
How to configure the copy and paste behavior. This guide describes how to configure the different translations used when pasting into Fonto Editor...
Read more >
Copy text string on click - javascript
What I want is to to be able to copy a text string on click without a button. The text string will be...
Read more >
Inline elements - HTML: HyperText Markup Language | MDN
In this article, we'll examine HTML inline-level elements and how they differ from block-level elements.
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