jupyterlab / jupyterlab-desktop

JupyterLab desktop application, based on Electron.
BSD 3-Clause "New" or "Revised" License
3.74k stars 361 forks source link

Session cannot be started in a folder with non-ascii characters #808

Open suzuyu1729 opened 7 months ago

suzuyu1729 commented 7 months ago

Description

In Windows 11, if one starts a session by opening a folder whose path includes non-ascii characters, , e.g. "A", then JupyterLab cannot open the folder and open the condabin folder in the python environment folder instead.

Reproduce

The following is reproduced in Windows 11 Pro 23H2 and JupyterLab Desktop 4.1.5-1.

  1. Launch JupyterLab Desktop from the icon in Desktop.
  2. In welcome page, click "Open Folder"
  3. Select a folder whose path includes non-ascii characters, e.g. "A".
  4. Create a new ipynb file in File Browser of JupyterLab. Save it.
  5. If one see the opened folder in Explorer.exe, one cannot find the ipynb file.
  6. Instead, one finds the ipynb file in the condabin folder in the python environment folder.

Expected behavior

JupyterLab can handle the folders of the above type normally.

Context

p.s. Originally I had a problem with folders in a non-C drive, but I cannot reproduce this drive issue now. Probably I was confused it with non-ascii path issue...?

welcome[bot] commented 7 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
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! :wave:
Welcome to the Jupyter community! :tada:

Ohachiyo commented 7 months ago

Same problem for me (with é). I had to revert to 4.0.7 for my session to open in the correct folder. I tried every releases in-between except 4.0.1, 4.1.0 and 4.1.1

pmguerre commented 5 months ago

I have the same problem (in Windows 11 Pro 22H2, OS Build 22621.3593).

If i try to right-click on a ipynb file (using file explorer, and in a path with non-ascii chars) it opens JupyterLab Desktop (so far so good), but it doesn't open any file, and it opens in the condabin folder of the python environment.

This happens in versions 4.1.8-1, 4.1.5-1, 4.1.4-1, 4.1.2-1, 4.1.1-1, 4.1.0-1 (i've tryed all of those) and then skip to 4.0.7-1, and in this version it works just fine.

Ohachiyo commented 2 months ago

Any update on this issue?

pmguerre commented 2 months ago

I have the same problem (in Windows 11 Pro 22H2, OS Build 22621.3593).

If i try to right-click on and ipynb file (using file explorer, and in a path with non-ascii chars) it opens JupyterLab Desktop (so far so good), but it doesn't open any file, and it opens in the condabin folder of the python environment.

This happens in versions 4.1.8-1, 4.1.5-1, 4.1.4-1, 4.1.2-1, 4.1.1-1, 4.1.0-1 (i've tryed all of those) and then skip to 4.0.7-1, and in this version it works just fine.

I've since tried also 4.0.11-1 and 4.0.12-1 with mixed results. In 4.0.11-1 it works fine, but version 4.0.12-1 has the bug.

So, from what I've gathered, this whole problems started in 4.0.12-1, and (maybe it's nothing maybe it's the cause), but I've noticed that from version 4.0.11 to 4.0.12 you changed the distribution file (in Windows anyway) from 32 bits in 4.0.11 (JupyterLab-Setup-Windows.exe) to 64 bits only in 4.0.12 (JupyterLab-Setup-Windows-x64.exe)... Maybe this has something to do with the problem?

flothesof commented 4 days ago

Hi, I have the same issue on Windows 10 Enterprise. Is there any known workaround maybe?

Thank you!