Is there a reason why it’s not possible to navigate to the parent directory of the entrypoint directory?
For not-so great a bash users, it means shutting down the server and relaunching in a new directory.
From a ux perspective, i could see it being scary that you could wind up outside the /Users/me
folder, but that you be solved with a reset button that jumps you back to your entry point directory.
Somewhat related about getting lost in directories:
opened 04:07PM - 04 Dec 16 UTC
tag:Extension Idea
It's easy to forget the current working directory of a notebook if there are mul… tiple ones open. I know one can issue a command to display the current working directory, but it helps if the current working directory is displayed somewhere.
manics
April 28, 2021, 8:12pm
#3
The list of files/directories in JupyterLab is an abstraction over the backend storage system. The default is to use your local filesystem for storing files but there are many alternatives, you can read more about the design here:
https://jupyter-server.readthedocs.io/en/latest/developers/contents.html
1 Like
manics
June 3, 2021, 8:48pm
#4
This recently came up in the jupyter-server repo:
opened 10:32PM - 02 Jun 21 UTC
enhancement
### Problem
There are many cases when a user would want to access file outsid… e of their notebook-dir. For example, @krassowski has created a workaround to allow for symlinks to open python paths in LSP ([lsp installation](https://github.com/krassowski/jupyterlab-lsp#installation), [more info](https://github.com/krassowski/jupyterlab-go-to-definition/blob/master/README.md#which-directories-to-symlink)). In other cases, a user may want to open a notebook that lives out of their notebook-dir (e.g. in a shared directory). Today the best option is again to symlink.
We should allow for users allow for one more more directories to be accessible outside of the notebook root directory. For example, I may set `--notebook-dir=~/jupyter` and then set the new flag `--allowed-dirs=/` to allow for any file to be opened in my OS.
### Proposed Solution
Add a traitlet which allows users to configure additional directories to allow Jupyter to open. In my usecase above I would set `allowed-dirs` to a parent of my notebook-dir, so this could be as simple as setting `--notebook-dir` to `/` and defaulting the file browser to open to `~/jupyter`, but I suspect others would want something more general.