Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste into Jupyter terminal? #104

Closed
sjobeek opened this issue May 21, 2015 · 19 comments · Fixed by #418
Closed

Paste into Jupyter terminal? #104

sjobeek opened this issue May 21, 2015 · 19 comments · Fixed by #418

Comments

@sjobeek
Copy link

sjobeek commented May 21, 2015

Is there any way to paste text into the Jupyter terminal?

On chrome I'm able to copy from the terminal no problem, but can't figure out how to get text in.

The terminal is quite handy, but being unable to paste in snippets of text makes it difficult to execute larger commands. I may just not have been able to figure out how to do it.

@rgbkrk
Copy link
Member

rgbkrk commented May 21, 2015

I've noticed that I have to right click inside the little term js widget to get copy paste to work. That definitely needs a fix. Thanks for reporting it!

@takluyver
Copy link
Member

See also chjj/term.js#37 and chjj/term.js#51.

@cboettig
Copy link

Looks like this has been resolved, yet I'm still not able to paste into the Jupyter terminal (in Ubuntu/Firefox). I'm running jupyter via your current jupyter/datascience-notebook docker image, seems like it should be recent enough? Any hints on debugging this?

@yuvipanda
Copy link
Contributor

@cboettig I don't think this is in the current released version, is set to milestone 4.1 which hasn't been released yet.

@yuvipanda
Copy link
Contributor

I can still repro this with the 4.1rc1 :(

@yuvipanda
Copy link
Contributor

Can someone re-open this? This is still happening (Firefox on Linux)

@willingc willingc reopened this Jan 11, 2016
@minrk minrk modified the milestones: 4.2, 4.1 Jan 11, 2016
@minrk
Copy link
Member

minrk commented Jan 11, 2016

Some further clarification: The bug preventing paste in all browsers is fixed in notebook 4.1 (term.js 0.0.7). The bug preventing Firefox from pasting is apparently separate (chjj/term.js#51), and fixed in term.js master, but hasn't seen a release. There's nothing for us to do but wait for term.js 0.0.8.

@yuvipanda
Copy link
Contributor

Actually, the fix hasn't been merged into master, and term.js development seems to have stopped :(

@minrk minrk modified the milestones: 4.2, 4.3 Apr 7, 2016
@aggFTW
Copy link

aggFTW commented May 3, 2016

I'm not sure if this is a dumb question or not, but how are you getting pasting to work? Ctrl+V or right click don't work.

My Jupyter installation is:

The version of the notebook server is 4.2.0 and is running on:
Python 2.7.11 |Anaconda 2.3.0 (64-bit)| (default, Dec  6 2015, 18:08:32) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]

@takluyver
Copy link
Member

@aggFTW Are you using Firefox? I think the fix for that is still not released.

@aggFTW
Copy link

aggFTW commented May 4, 2016

I'm using Chrome.

@smokedsalmonbagel
Copy link

It sounds like this is working for some people. For me, right clicking on the terminal does not show the paste option in Chrome Firefox or even IE. Running Windows 7 on the client side and Jupyter version 4.1.0 on remote server. The server is Ubuntu 14.04.
Is there a work around?

@mogthesprog
Copy link

Hey guys,

Just taken a look into this again as while it's not really a huge issue it is a a pain in the ass... and then i foudn this:

https://github.com/sourcelair/xterm.js

A maintained fork of the unsupported term.js. Running a local instance myself and it seems like it solves this problem and a host of others, #1227 for instance.

Any chance we can get term.js swapped out for xterm.js? I have no idea how much work is entailed in doing this, so feel free to shout at me for asking you to move mountains...

Cheers

@takluyver
Copy link
Member

@rgbkrk I think you were looking into this. Do you have a feel for how easy it would be to swap xterm.js in place of term.js?

@blink1073
Copy link
Contributor

blink1073 commented Jul 5, 2016

@takluyver, not hard at all ;). #1591

@Carreau Carreau modified the milestones: 4.3, 4.4 Jul 29, 2016
@Carreau
Copy link
Member

Carreau commented Feb 2, 2017

Fixed by #1591

@Carreau Carreau closed this as completed Feb 2, 2017
@Carreau Carreau modified the milestones: 5.0, 4.4 Feb 2, 2017
@rahulremanan
Copy link

rahulremanan commented Dec 24, 2017

I can't copy anything from the Jupyter terminal. I am using jupyter-client 5.2.0 and jupyter-core 4.4.0, inside an Ubuntu 17.10 virtual machine. Paste works fine, just can't copy anything from the terminal. Browsers tested: Chrome version 63, Firefox version 57 and Microsoft Edge. The xterm.js doesn't output anything to the clipboard when copying something from the jupyter terminal. Is there a fix for this issue?

@Yida147
Copy link

Yida147 commented Sep 23, 2019

I can paste words by pressing shift+insert button

@felipeardilac
Copy link

felipeardilac commented Oct 7, 2019

You can paste text into the terminal doing shift+right click on the terminal and then select paste

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.