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

Improvements to the cell tags plugin #7449

Open
choldgraf opened this issue Oct 31, 2019 · 3 comments
Open

Improvements to the cell tags plugin #7449

choldgraf opened this issue Oct 31, 2019 · 3 comments

Comments

@choldgraf
Copy link
Contributor

This is assuming that #7407 gets merged, which adds core jlab support for cell tags.

Two features that I think would improve the cell tags functionality:

The ability to quickly scan which tags are in each cell

It would be useful to give people visual cues of what tags are attached to a cell without that cell being selected. In the old notebook tag system, you'd see a little word for each tag within the cell header, which made it easy to quickly skim them and see what tags were where. E.g.:

In JupyterLab, you need to make a few UI clicks to see which cells have which tags. It makes this a big clunkier, and impossible to quickly skim the distribution of tags in a notebook:

54DKfCqoPl

The ability for users to pre-define some tags

Another useful item would be if there were a way for extension authors to define a list of tags that would be available to users. This would allow users to more quickly enable / disable functionality using tags for a particular use-case.

An example of this is Jupyter Book - currently, users can show / hide elements using hide_input, hide_output, etc tags. However, knowing the full list of possible tags requires people going through the documentation reference. Moreover, there are annoying little things like remembering it's hide_input and not hide_inputs. These add cognitive load to users.

If it were possible for Jupyter Book to say "if the jupyter-book lab extension is installed, then make this subset of tags pre-listed as options", then it could remove this ambiguity without requiring a whole new UI section that's just dedicated to Jupyter Book tags.

@fcollonval
Copy link
Member

FYI I released an extension to address this as well as some action buttons: https://github.com/fcollonval/jlab-enhanced-cell-toolbar

demo

@choldgraf
Copy link
Contributor Author

That is so cool!

@jasongrout
Copy link
Contributor

CC @pya

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

No branches or pull requests

3 participants