Note to self: because the traitlet default is lazily evaluated, the native kernel file only gets written if you use `--kernel` to run with a non-default kernel. This should probably be fixed.