1
$\begingroup$

As described in the documentation, the Paste function,

Paste[] pastes the contents of the system clipboard in the input notebook.  

But on my system, 10.3.0 for Linux x86 (64-bit) (October 9, 2015), this does not work. Here is what I find

  • Open a new notebook with a fresh kernel, go to another program and copy some text, then go back to the notebook and evaluate Paste[]. There is no output whatsoever.
  • Now copy some text out of the notebook, and evaluate Paste[]. The output is what you copied.
  • Now quit the kernel, leaving the front end open, and evaluate Paste[]. The output is the same as above.

So clearly it isn't pasting the contents of the system clipboard, but rather an internal front-end clipboard. Has this always been the case? Am I missing something in the documentation? Is this the case on other versions?

$\endgroup$
  • 1
    $\begingroup$ Works for me on Win7 x64 with MMa 10.3.1. Probably it is OS-related issue. $\endgroup$ – Alexey Popkov Dec 29 '15 at 10:29
  • $\begingroup$ This doesn't work for images in the clipboard. $\endgroup$ – M.R. Dec 29 '15 at 15:54
  • $\begingroup$ @M.R. - I hadn't tried this before, but if I copy an image into the clipboard from my browser, then enter Paste[] I get nothing. But if I first Ctrl-v paste it into the notebook, then afterwards Paste[] does work $\endgroup$ – Jason B. Dec 29 '15 at 15:57
  • $\begingroup$ Weird! Actually the image that get's copied is from a screenshot, then it doesn't work, was what I meant to say. $\endgroup$ – M.R. Dec 29 '15 at 15:58
  • 1
    $\begingroup$ x windows clipboard doesn't work in any sensible way period. azquotes.com/quote/745472 $\endgroup$ – george2079 Dec 29 '15 at 21:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.