jupyterlab-spreadsheet-editor icon indicating copy to clipboard operation
jupyterlab-spreadsheet-editor copied to clipboard

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

Open renan-r-santos opened this issue 8 months ago • 0 comments

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

  • Python package version: 3.12
  • Extension version: 0.7.1

renan-r-santos avatar Jun 21 '24 17:06 renan-r-santos