Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlight to select and Middle-button to paste in jupyter notebook?

Tags:

In Jupyter Notebook, when I highlight text either from within a cell in the notebook or from outside the notebook, Middle-Button click doesn't paste anything as it is supposed to do in many other applications in linux. Is there any setting that would allow one to be able to paste with a Middle-Button click into an Ipython or Jupyter Notebook?

I'm using the notebook in firefox if that matters.

like image 722
calocedrus Avatar asked Mar 02 '17 08:03

calocedrus


People also ask

How do you copy and paste in Jupyter Notebook?

Copying and pasting cells BETWEEN notebooks: Notebook 1: — Select multiple cells by holding down Shift and hit Ctrl+c to copy. Notebook 2: — Hit Esc to enter Command mode Ctrl + v to paste.

How do you copy and paste in Jupyterlab?

Copy/Paste For macOS users, Cmd+C and Cmd+V work as usual. For Windows users using PowerShell , Ctrl+Insert and Shift+Insert work as usual.


1 Answers

The fact that you're using Firefox definitely matters. See this issue on CodeMirror (CodeMirror is the text editor that Juypter uses): Issue #931

In that thread, it references this Firefox issue: https://bugzilla.mozilla.org/show_bug.cgi?id=846674 It seems as though the issue has only recently been fixed, so it may take a little bit to trickle into CodeMirror. You may want to comment on the issue in CodeMirror to inform them that the issue has been fixed on FF and it might prompt them to investigate.

However, Jupyter doesn't automatically use the most recent version of CodeMirror so again you may have to wait a while. If this issue is truly critical then I suggest switching to another browser.

like image 140
Louise Davies Avatar answered Sep 24 '22 10:09

Louise Davies