jupyterlab-contrib / jupyterlab-spreadsheet-editor

JupyterLab spreadsheet editor for tabular data (e.g. csv, tsv)
BSD 3-Clause "New" or "Revised" License
135 stars 7 forks source link

Saving a CSV file also downloads it when the spredsheet is focused #70

Closed renan-r-santos closed 4 months ago

renan-r-santos commented 5 months ago

Description

Reproduce

  1. Using your favorite package manager, install jupyterlab and this extension, e.g., pixi init && pixi add jupyterlab jupyterlab-spreadsheet-editor
  2. Start JupyterLab with jupyter lab
  3. Create a CSV file called test.csv and open it
  4. Edit the CSV file, select any cell, and then use the save shortcut, e.g. Ctrl + S
  5. The file gets saved and downloaded. The downloaded filename has an additional .csv suffix, i.e., test.csv.csv

Expected behavior

This happens because the jspreadsheet-ce package uses the same shortcut JupyterLab uses to save a file, but it instead downloads it. Ideally, using JupyterLab's save shortcut shouldn't also download the file.

Context