-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[ENH] - Enable clipboard #1796
Comments
Does anyone know how to fix this issue? |
Hi @adrienpacifico! I also think this issue is not related to our docker images in particular and you should use the thread with the message I mentioned (that's why I'm closing this issue). |
Hi @mathbunnyru! I am a bit sad that you closed the issue, as I think that being able to copy/paste at least for local jupyterlab docker image could be a nice option to have! It could be:
If anyone interested, I made it work on a debian based linux with the following method:
Or copy and paste one of these URLs:
http://pop-os:8889/?token=c370a0043b9bf8e2e10c39a501fe96f4fbe52da9f58bbfd0
import pandas as pd
pd.read_clipboard() And it works 🎉 It would be interesting to me to know if there exist a solution like that for macos (or windows). |
Great solution @adrienpacifico! Could you maybe share your instruction as a recipe? It will be easier for people to find it in the docs (and not in the github issue). |
I would also suggest formulating it as a Dockerfile inherited from our Dockerfiles (to be persistent), and not to be run from |
I believe copy/paste should work without any libs on Windows, but I have not tested it. |
Thank you @Bidek56! @mathbunnyru gotcha! I did not know about recipes! It is quite nice! I will do it when I can (except if someone wants to write the recipe). |
Let's see how much megabytes the package adds to the image size. |
@adrienpacifico as you suggested, I added xclip to the minimal image. And this is the essential part to enable clipboard on Linux host system, right? |
I am sorry, I was using an old version of jupyterlab image, I just repulled the last version, and I have an error when I launch a jupyter kernel/open a notebook (Server Connection Error).
The answer is yes. However, I have not tried without the |
@adrienpacifico I updated the docs. |
What docker image(s) is this feature applicable to?
datascience-notebook
What changes are you proposing?
This code does not work with docker images:
It throws a
PyperclipException
.I do not know if it is possible, but it would be really nice to have this working with docker images.
How does this affect the user?
Anything else?
No response
The text was updated successfully, but these errors were encountered: