Skip to content
New issue

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

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

Already on GitHub? # to your account

.csv involuntarily converted to .xls #14702

Open
numeric-lee opened this issue Jun 16, 2023 · 5 comments
Open

.csv involuntarily converted to .xls #14702

numeric-lee opened this issue Jun 16, 2023 · 5 comments
Labels

Comments

@numeric-lee
Copy link

numeric-lee commented Jun 16, 2023

When I download from Jupyter Lab to my local machine, it involuntarily converts .csv files to .xls

This issue was previously closed on the premise the fault must lie with the browser
[(https://github.com//issues/8019)]

However, I have the same issue. It occurred after I switched from an older version of jupyter lab on WSL to a new installation on windows 11 native.
It does not happen when I download csv files from other web_apps and it occurs with both Chrome and Mozilla Firefox. The Firefox browser worked successfully with the previous version of jupyter lab

My jupyter lab version is 3.5.3 , distribution is through Anaconda Navigator.

Also, I do not believe this issue has anything to do with Microsoft Excel and the file associations. It is not prompted by any Excel interactions and it did not exist until I switched from one version of jupyter lab to another. Currently I need to open each download in notepad++ and save it in .csv format as a workaround

Also, is there a way to programmatically download from within the script

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Jun 16, 2023
@welcome
Copy link

welcome bot commented Jun 16, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@JasonWeill JasonWeill removed the status:Needs Triage Applied to new issues that need triage label Jun 20, 2023
@JasonWeill
Copy link
Contributor

Thanks for opening this issue! This could be a MIME type issue with the file download; if the Content-Type header is set to a Microsoft Excel type, a browser might choose the .xls file extension.

Have you tried this with JupyterLab 4.0? Does the problem still occur with this newer version?

@krassowski
Copy link
Member

For context, the Content-Type is set in jupyter_server/jupyter_server/files/handlers.py.

@numeric-lee
Copy link
Author

my handlers.py looks identical to the repo

Using anaconda navigator, I was able to upgrade Jupyter Lab to version 3.6.3. The behavior persists

@numeric-lee numeric-lee mentioned this issue Jun 27, 2023
@JasonWeill
Copy link
Contributor

Not reproducible on macOS with Lab 4.1.0.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants