lab_command = ' '.join([
    'jupyter',
    'lab',
    '--dev-mode',
    '--debug',
    '--no-browser',
    '--port={port}',
    '--ServerApp.ip=127.0.0.1',
    '--ServerApp.token=""',
    '--ServerApp.base_url={base_url}lab-dev',
    # Disable dns rebinding protection here, since our 'Host' header
    # is not going to be localhost when coming from hub.mybinder.org
    '--ServerApp.allow_remote_access=True'
])

c.ServerProxy.servers = {
    'lab-dev': {
        'command': [
            '/bin/bash', '-c',
            # Redirect all logs to a log file
            f'{lab_command} >jupyterlab-dev.log 2>&1'
        ],
        'timeout': 60,
        'absolute_url': True
    }
}

c.NotebookApp.default_url = '/lab-dev'

import logging
c.NotebookApp.log_level = logging.DEBUG

lab_command = ' '.join([
    'jupyter',
    'lab',
    '--dev-mode',
    '--debug',
    '--extensions-in-dev-mode',
    '--no-browser',
    '--port={port}',
    '--ServerApp.ip=127.0.0.1',
    '--ServerApp.token=""',
    '--ServerApp.base_url={base_url}lab-dev',
    # Disable dns rebinding protection here, since our 'Host' header
    # is not going to be localhost when coming from hub.mybinder.org
    '--ServerApp.allow_remote_access=True'
])

c.ServerProxy.servers = {
    'lab-dev': {
        'command': [
            '/bin/bash', '-c',
            # Redirect all logs to a log file
            f'{lab_command} >jupyterlab-dev.log 2>&1'
        ],
        'timeout': 60,
        'absolute_url': True
    }
}

c.NotebookApp.default_url = '/lab-dev'

import logging
c.NotebookApp.log_level = logging.DEBUG

Add --extensions-in-dev-mode to the Binder dev mode
Add --extensions-in-dev-mode to the Binder dev mode
