jupyterlab/federated_labextensions.py
def build_labextension(path, logger=None, development=False, static_url=None, source_map = False):
    """Build a labextension in the given path"""
    core_path = osp.join(HERE, 'staging')
    ext_path = osp.abspath(path)

    if logger:
        logger.info('Building extension in %s' % path)

    builder = _ensure_builder(ext_path, core_path)

    arguments = ['node', builder, '--core-path', core_path,  ext_path]
    if static_url is not None:
        arguments.extend(['--static-url', static_url])
    if development:
        arguments.append('--development')
    if source_map:
        arguments.append('--source-map')

    subprocess.check_call(arguments, cwd=ext_path)
Build a labextension in the given path
Build a labextension in the given path
Build a labextension in the given path
def build_labextension(path, logger=None, development=False, static_url=None, source_map = False):
    core_path = osp.join(HERE, 'staging')
    ext_path = osp.abspath(path)
    if logger:
        logger.info('Building extension in %s' % path)
    builder = _ensure_builder(ext_path, core_path)
    arguments = ['node', builder, '--core-path', core_path,  ext_path]
    if static_url is not None:
        arguments.extend(['--static-url', static_url])
    if development:
        arguments.append('--development')
    if source_map:
        arguments.append('--source-map')
    subprocess.check_call(arguments, cwd=ext_path)
def build_labextension ( path , logger = None , development = False , static_url = None , source_map = False ) : core_path = osp . join ( HERE , 'staging' ) ext_path = osp . abspath ( path ) if logger : logger . info ( 'Building extension in %s' % path ) builder = _ensure_builder ( ext_path , core_path ) arguments = [ 'node' , builder , '--core-path' , core_path , ext_path ] if static_url is not None : arguments . extend ( [ '--static-url' , static_url ] ) if development : arguments . append ( '--development' ) if source_map : arguments . append ( '--source-map' ) subprocess . check_call ( arguments , cwd = ext_path )
Build a labextension in the given path
Build a labextension in the given path
"""Build a labextension in the given path"""
path
logger
development
static_url
source_map