Skip to content
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

File browser: 'Name' sorts .ipynb files out of order #3237

Open
drscotthawley opened this issue Nov 14, 2017 · 13 comments
Open

File browser: 'Name' sorts .ipynb files out of order #3237

drscotthawley opened this issue Nov 14, 2017 · 13 comments

Comments

@drscotthawley
Copy link

drscotthawley commented Nov 14, 2017

Hey, great tool! This is such a small thing, but you said you wanted UX feedback:

I found out about Jupyter Lab, installed it, started up Jupyter lab... could not find my notebook file listed with the other files in the Jupyter Lab file browser, even though my file was in the directory. I must've run "ls" several times and started looking into filesystem errors... All the other files were listed, just not my notebook. My .ipynb file starts with a 'p' so I was looking for it where all the files starting with a 'p' are listed.

Turns out it was listed after the directories, but before all the other files. Even clicking on the 'Name' tab did not put it in the list alphabetically...

Perhaps there's some group of users that want all their .ipynb files at the top (but AFTER the directory names?) when the file viewer is sorting by 'Name', but I think many of us will find this behavior confusing. I have lots of directories listed, so searching after them, but before the first non-notebook file that starts with an 'a', seems rather non-intuitive.

How about just putting the .ipynb files in the list alphabetically like the others, or if you want to put the .ipynb files at the top, then put them at the very top, before listing the directories?

Looking forward to trying this out!

@ellisonbg
Copy link
Contributor

ellisonbg commented Nov 15, 2017 via email

@saulshanabrook
Copy link
Member

saulshanabrook commented Sep 12, 2018

Possible todo:

  • Add column for type in filebrowser
  • Doing sorting client side instead of server side?
  • Add sort toggle instead of column

Goal is to be able to sort and not have ipnb promoted to top

@tgeorgeux
Copy link
Contributor

I prefer the sorting idea as of now. I'll play around with the design a bit this afternoon.

@tgeorgeux
Copy link
Contributor

@saulshanabrook et al. I have some updates on this guy. I've basically zoned in on two main ideas, they aren't pixel perfect yet, but I think they both have potential.

The first design is a simple. It's basically using the existing components to organize as desired, name field only switches direction of sorting:
sort by column - name open

For the 'search bar' idea, I was thinking of having a filter button that can show/hide file types as well as a search bar that live filters. This would require a little bit more design if we want to go down this road. We can also kick the search improvement to future and execute the simple sort now. Here's what I have for the search bar so far:
search bar - filter breadcrumbs dropdown
search bar - filter opened
search bar - filter

Let me know what ya'll think and I'll keep going on one or the other of these.

@saulshanabrook
Copy link
Member

saulshanabrook commented Jan 9, 2019

I am unassigning myself, but if I have immediate time to work on this I will take a look on it and re-add myself.

@saulshanabrook saulshanabrook removed their assignment Jan 9, 2019
@tgeorgeux
Copy link
Contributor

@jasongrout
Copy link
Contributor

@parente did some experimentation on a 'quick open' feature that is somewhat related to the search feature mentioned above: https://github.com/parente/jupyterlab-quickopen

@drscotthawley
Copy link
Author

@tgeorgeux Your option "Notebooks first (Classic)" is misleading, because as your images show, the notebooks are not first, they are after the directories. The classic order seems to be "Dirs/NBs/other".

@tgeorgeux
Copy link
Contributor

Good point. @drscotthawley

@saulshanabrook saulshanabrook modified the milestones: 1.0, Future May 22, 2019
@saulshanabrook
Copy link
Member

Meeting notes:

We should pursue #6093 before we tackle this one.

@vpresnyak
Copy link

As a classic notebook user, I am indeed very used to having my notebooks at the top, so the recent change that started mixing them into the rest of my files is really throwing my workflow for a loop.

Just adding a vote for the options @tgeorgeux proposed, I like the first option. I'd prefer to have a few options for my file sorting, I think the search bar is going to be a little clunky for folders that aren't very large.

@TraderMikeS
Copy link

It has been more than a year since someone commented on this issue. Every time I do a Jupyter Lab update I check to see if anything has changed. My notebooks are buried in a long list of files. This really slows me down. Why is a simple change of modifying the sort criteria by the user so controversial and not just a slam dunk and already accomplished?

@jasongrout
Copy link
Contributor

Why is a simple change of modifying the sort criteria by the user so controversial and not just a slam dunk and already accomplished?

@TraderMikeS - would you like to work on implementing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants