jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.55k stars 4.84k forks source link

Linux copy/paste file path from GUI not working #7042

Open Lucas-Servi opened 11 months ago

Lucas-Servi commented 11 months ago

Description

Reproduce

  1. "Ctrl+C" on a file using the file manager GUI in Linux (Tried Ubuntu, POP OS and Mint).
  2. "Ctrl+V" on a jupyter notebook cell is not working since I updated to Version 7.+ of jupyter notebook.

Expected behavior

The whole file path to be pasted for e.g.: "/home/User/data/table.csv"

Context

navdeepgill14 commented 11 months ago

Hi, Can this issue be assigned to me? I'm interested in this and I can try my best resolving it. Cheers, Navdeep

jayeshsingh9767 commented 10 months ago

is this really supposed to work that way? I am using jupyter 7 on mac and this is not working for me too.

https://github.com/jupyter/notebook/assets/25323466/3c36729c-8667-43fe-83bd-5f2272d02362

haok1402 commented 9 months ago

@RRosio May I work on this issue? I can reproduce the bug with version 7.1.0a0 on Ubuntu 22.04.3 LTS and confirm that this copy-full-path functionality does work with Jupyter Notebook 6.4.8.

RRosio commented 9 months ago

Hi @haok1402! Yes, there is no need to ask, please feel free to work on this or any issue that you would like to contribute!

haok1402 commented 9 months ago

It turns out that the inline editor of Jupyter Notebook Version 7.x uses @jupyterlab/codemirror extension, which doesn't yet supported copy / paste file path from GUI, as demonstrated by the screen recording below.

I'll look into JupyerLab codebase trying to fix the issue there and create a pull request to close this one.

Screencast from 12-05-2023 12:55:53 AM.webm

vivekk0903 commented 4 months ago

Hi, any updates on this issue? We are facing the same issue in jupyterlab as well in Ubuntu (even on latest version).

Need to copy two times. First from file browser to any other location (text editor, url bar etc), then from there to the jupyter cell.