-
Notifications
You must be signed in to change notification settings - Fork 568
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
--clear-output flag is broken #822
Comments
I can confirm that |
I have tracked down (at some level) the why, but this is bound up in deep traitlets behavior that I cannot figure out at all, so I'm not sure what the fix is. In traitlets.config.Application.flatten_flags, which is called on
into
This is the crucial traitlets code:
I have no clue what this traitlets code is even trying to do, though it really doesn't work as expected for this case. The best workaround I can think of for this specific case would be to not make This does seem to be acknowledged as a problem in traitlets in ipython/traitlets@c577973 ("The whole flatten_flags method seems like a very awkward workaround to make one priority ordering more important than another. It only 'flattens' one level of inheritance, and it ignores that parent classes may be instantiated."). |
The `--clear-output` flag has been broken for a while, replace it with a the still-working direct configuration (see jupyter/nbconvert#822). Also, update all notebooks with cleared versions.
* cleanup 00 * 01 cleanup * 02 cleanup * 03 cleanup * 04 cleanup * 05 cleanup * 06 cleanup * cleanup * cleanup script for notebooks * working cleanup script jupyter/nbconvert#822 * clean all output * f-string suggestion
Any updates on this ? It is still broken on version |
I will add it to the 6.0 release milestone to double check it's fixed. One of the larger dependency changes needed got done last week so 6.0 can move forward again. |
I think I'm running Any chance that $ jupyter nbconvert --version
nbconvert : 6.0.7 EDIT: I tried again, and magically it worked. Let's assume I made a typo or something the first time. Or perhaps it only works if |
I appreciate the
--clear-output
convenience flag introduced in #619. However, unless I'm missing something it simply does not work.These commands should both remove output, but the second does not:
The first form includes the following output (using the
--debug
option):However, the
ClearOutputProcessor
line is missing when using--clear-output
.See this StackOverflow answer for another user who observed the same issue.
Using Anaconda Python 3.6.5 + Jupyter 4.4.0
The text was updated successfully, but these errors were encountered: