def METHOD_NAME(app):
    METHOD_NAME.app = app
    METHOD_NAME.config = app.config
    METHOD_NAME.confdir = app.confdir
    app.add_node(notebook_node,
                 html=(visit_notebook_node, depart_notebook_node))
    app.add_directive('notebook', NotebookDirective)