fix typo
Move append_output animation height lock release into timeout.
Use .load() to resize
Try removing the callbacks
A couple of fixes,

- Fix missing `type` from png/jpeg check
- Don't resize on weird chr(13) stand alone stream msgs
Make sure to not call old load events
Cleanup
Don't send \r characters in zmqshell clear_ourput
Make qtconsole aware of clear_output.
fix n^2 performance issue in coalesce_streams preprocessor

for n consecutive stream outputs, `\r` fix would be compiled n times,
and applied to each output (n-i) times.

- move pattern to module level
- apply replacement after coalescing outputs
improve logging in nbconvert preprocessors

also cleanup spelling and grammar in a few docstrings
output_type should not be optional in new_output

and fix bug that this would have revealed
Make `ipython console` aware of clear_output changes.
Make HasTraits pickleable

The main change is storing method names instead of functions in `trait_dyn_inits`.
These functions were failing to pickle.
Merge pull request #5535 from minrk/nbconvert-debug

fix n^2 performance issue in coalesce_streams preprocessor
Merge pull request #5554 from minrk/pickle-traitlets2

Make HasTraits pickleable
Merge pull request #5507 from adrn/doc-fix

Fix typo in interactive widgets examples index notebook
Minor typo fix in "Cython Magics.ipynb"
Merge pull request #5559 from eteq/patch-1

Minor typo fix in "Cython Magics.ipynb"
Address @takluyver's comments.