-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default file browser creates new files and folders in a custom drive if installed #15629
Comments
Creating a new folder uses the following command, which check for the jupyterlab/packages/filebrowser-extension/src/index.ts Lines 1143 to 1147 in 07b9339
|
Digging a bit more, this is also an issue in JupyterLab 3: jupyterlab-3-focus-issue.webmBut it's still odd this started to surface by default in Notebook 7, with the recent pre-releases based on JupyterLab 4.1: jupyter/notebook#7210. In Notebook 7 this is an issue only in |
This is also reproducible with another drive: https://github.com/jupyterlab-contrib/jupyterlab-filesystem-access jupyterlab-filesystem-access-issue.webm |
This sounds quite similar to #15290, is it the same issue or a distinct one? |
It looks like a different one, because in this case the tracker current widget is not correct after switching between the default file browser and the drive. |
@jtpio, do you have any updates on this? It's causing issues since we have multiple custom drives. |
@yogeshiitm no update so far, not sure someone had a look at it yet. |
EDIT: my mistake, as mentioned above it happens also with previous versions of jupyterlab. |
|
Actually the issue seems to start from https://github.com/jupyterlab/jupyterlab/releases/tag/v4.0.0a23, I can't reproduce it with a previous version (maybe #12281, that change the way the toolbars is created in filebrowser). |
Linking to jupyterlab-contrib/jupyterlab-gitlab#15, which states in jupyterlab-contrib/jupyterlab-gitlab#15 (comment):
|
A few more details on this issue, after trying to solve it in two different ways. The command to create a directory in a filebrowser uses the But clicking on a toolbar button does not move the focus to the button or to the toolbar. This is intended, probably to handle the state of the Notebook when using the notebook toolbar. Indeed, the function In my opinion, we should:
|
- Temporarily remove the jupyterlab-github package, since it triggers the bug described at jupyterlab/jupyterlab#15629 and isn't essential. - Place an additional copy of the user ipython init file in /tmp, since the one in /home isn't accessible if another filesystem is mounted there.
Description
When a custom drive is installed, the default file browser might try to create files and directories in the installed drive, instead of the default file browser.
Reproduce
pip install jupyterlab==4.0.10
pip install jupyterlab-github
jupyterlab-drive-focus-issue.webm
Expected behavior
After switching drives, it should be possible to create a new directory in the default filebrowser.
Context
This was initially noticed in jupyterlite/jupyterlite#1263 and jupyter/notebook#7210.
Thanks @brichet for reproducing the issue in JupyterLab 4 as well.
The text was updated successfully, but these errors were encountered: