All traits have a `transient` metadata property that you can use to tell whether they should be serialized or not.  By default it is `False` (which means serialize), but you can set it to `True` in the trait definition (eg. `foo = Str(transient=True)`) for traits which shouldn't be serialized.

This mechanism may help with the HDF5 support.