-
Notifications
You must be signed in to change notification settings - Fork 810
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
Bad interaction between "Collapsible Headings" and "Excercise" extensions #990
Comments
So on expanding the heading, the exercise solution is also revealed, is that it? Sounds likely, since each nbextension but reveals/hides cells as it thinks appropriate, without making any effort to check whether any other nbextension has hidden them. I think just patching collapsible headings would be enough, however, this could cause problems if the exercise nbextension is disabled, but its metadata remains available, since there would then be no way to re-reveal the solutions once hidden by a collapsed heading... |
Yes, it is correct
I do not know how extensions are made, but I think at this point it is possible to have problems either if you open the notebook without one of the two active extensions or even if the opposite happens (a Collapsible Heading cell inside an Exercise cell, but I have not tried). For now I have chosen to use only collapsible headings, if it is not resolvable it can be circumvented through only this extension. |
Ah, true, I hadn't thought of that! I suspect it wouldn't make a huge amount of sense to have headings inside a solution, so perhaps we might enforce that to prevent the potential confusion of a heading hidden by an exercise, which hides other cells which are not part of the exercise 😕 Anyway, having thought about this a little more, I think perhaps it could be fixed by using the bootstrap |
rather than jquery show/hide, in order to play nicely with collapsible_headings fixes ipython-contrib#990
If there are collapsed cells with the "Exercise" extension (1 or 2, is the same) within collapsed cells with the "Collapsible Headings" extension, if the latter is expanded, the previous one is also expanded and I have to press twice on the slider/[+] to re-hide the exercise.
The text was updated successfully, but these errors were encountered: