from traitlets.config import LoggingConfigurable
from traitlets.traitlets import Unicode


class NotebookGist(LoggingConfigurable):

    oauth_client_id = Unicode(
        '',
        config=True,
        help='The GitHub application OAUTH client ID',
    )

    oauth_client_secret = Unicode(
        '',
        config=True,
        help='The GitHub application OAUTH client secret',
    )

    def __init__(self, *args, **kwargs):
        self.config_manager = kwargs.pop('config_manager')
        super(NotebookGist, self).__init__(*args, **kwargs)
        # update the frontend settings with the currently passed
        # OAUTH client id
        self.config_manager.update('notebook', {
            'oauth_client_id': self.config.NotebookGist.oauth_client_id,
        })

@@ -169,37 +169,16 @@
     '',%0A
-        config=True,%0A
         
@@ -225,24 +225,41 @@
 t ID',%0A    )
+.tag(config=True)
 %0A%0A    oauth_
@@ -299,29 +299,8 @@
 '',%0A
-        config=True,%0A
     
@@ -354,21 +354,38 @@
 ecret',%0A
-
     )
+.tag(config=True)
 %0A%0A    de

Use modern way to mark traitlet as configurable