-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Tagging #6638
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
Tagging #6638
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this toolbar have a unique signature for register?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just because it needs keyboard manager. AFAIK the others do not. It is possible to get keyboard_manager via notebook.keyboard_manager as seen here, so I can change the sig so it looks the same as the others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug?
|
pinging also @juhasch, who I think will be very interested and maybe use some of these machinery in his extensions... |
|
IMHO, the tagging where you have to type on each cell is not practical, I would have a main interface where you can edit the global list of tag, and then just a checkbox for the tag you want to add/remove. a bit like the github UI. But it's just an idea. |
|
Wow thanks for the quick review guys. I've just pushed a fix for the tag filter and fixes for the other comments. @minrk :
I changed it so it looks like the others now.
Fixed
Okay, I added a function that prohibits space characters and commas.
It was broken after a rebase, it should be fixed now. You should be able to type a cell filtering expression. Pressing return will execute your filter. Filter expressions support
Fixed
Fixed |
|
Temporarily broken because I rebased the components branch on top of master which has CM 4. I'll have to rebase this on top of @Carreau 's CM PR. I'll ping back when this is done. |
|
I decided against rebasing on top of @Carreau 's CM4 PR for now, so this is no longer broken. Test away :) |
b2422f4 to
86d4f91
Compare
|
@jhamrick I think you accidentally put your comment in the accompanying compents PR instead of here. I'll respond here:
Can you try again with the latest ( 86d4f91 ) ? I can't replicate this. Are any errors printing to the JS console?
I'm not sure bootstrap-tags supports this, but I could probably add something so on blur the current text gets added as a tag.
It was intended to be just visual, but you bring up a good point. It may make sense to modify run all so only cells that are display != 'none' get ran. @jasongrout opinion?
This is something I will add a handler for manually. |
|
Another question: Should the filter be persist through download as? If so, it should probably be in a separate PR which would add nbconvert support for cherry picking. |
|
@jdfreder it looks like Travis is breaking on the submodule. I think you need to push your branch in components to the |
Ah I was wondering why I say branches != 'master' in that repo, that explains why... |
|
Oops! Sorry about that. The error with the filtering box does still seem to occur on 86d4f91 : From the js console, it looks like it's still throwing the same |
|
ok looking now... |
|
@jhamrick I fixed the bug and made it so blur triggers the typed text to add a tag (this fixes the problem you mentioned regarding |
|
I love the feature. For a widget, we used For convenience, I would find it nice if it was the one used and loaded with IPython, and you might also prefer it because of its larger adoption. |
|
Let's look at this option Sent from my iPhone
|
|
There are many different usage cases that this targets. In a sense tags are In terms of the particular library that is used, I think that it is worth While I agree with some of the points that @Carreau has made about the UI,
On Tue, Oct 21, 2014 at 7:40 AM, Brian Granger ellisonbg@gmail.com wrote:
Brian E. Granger |
|
I am fine with On Tue, Oct 21, 2014 at 10:41 AM, Brian Granger ellisonbg@gmail.com wrote:
Brian E. Granger |
|
Hey all, I'm going to open another PR trying |
1bb8cf5 to
b2421b9
Compare
|
@Carreau I like the ghost tags idea, I'll play around with it to see if it's easy enough to implement. |
|
Inactive for more than a month, and we decided that for 3.0 if we do something it would be API only. |
|
@jasongrout @SylvainCorlay and all, I will implement this as an extension and ping back. |
|
Drat! I was looking forward to this being something we could rely on for people to tag materials for nbviewer. Guess I'd just refer them to the extension? |
|
👍 for porting this to Jupyter. |
|
Any chance of reviving this PR? |
|
Yes, this week is our dev meeting, this is one of the subject we are discussing. |
|
Bump; it would still be great to have this ported. |



With the addition of cell tags to nbformat v4, it's probably a good time to discuss adding a GUI for tagging and filtering cells. This PR adds a cell toolbar that uses the Bootstrap-Tags library to enable tagging of cells. It also adds a filter GUI to the main toolbar that allows you to quickly filter cells by tag.
Ping @jasongrout and @SylvainCorlay who requested this, and @ellisonbg who took a look in person and gave me some suggestions.