jupyter/defs.bzl
def jupyterlab_server(name = "jupyterlab", **kwargs):
    """ A macro for creating a Jupyterlab Server.

    Args:
      name: A unique name for this rule.
      **kwargs: are passed to py_binary, with srcs and deps attrs modified
    """

    deps = kwargs.pop("deps", []) + [clean_dep("//jupyter:jupyterlab_helper")]
    srcs = kwargs.pop("srcs", []) + [clean_dep("//jupyter:jupyterlab_helper")]

    # patch env
    env = kwargs.pop("env", {})

    # env['JUPYTERLAB_DIR'] = "$(RUNFILES_DIR)/pypi__jupyterlab/jupyterlab"
    # print(env['JUPYTERLAB_DIR'])
    py_binary(
        name = name,
        srcs = srcs,
        deps = deps,
        main = "jupyterlab_helper.py",
        env = env,
        **kwargs
    )
 A macro for creating a Jupyterlab Server.

    Args:
      name: A unique name for this rule.
      **kwargs: are passed to py_binary, with srcs and deps attrs modified
    
A macro for creating a Jupyterlab Server.
A macro for creating a Jupyterlab Server .
def jupyterlab_server(name = "jupyterlab", **kwargs):
    deps = kwargs.pop("deps", []) + [clean_dep("//jupyter:jupyterlab_helper")]
    srcs = kwargs.pop("srcs", []) + [clean_dep("//jupyter:jupyterlab_helper")]
    env = kwargs.pop("env", {})
    py_binary(
        name = name,
        srcs = srcs,
        deps = deps,
        main = "jupyterlab_helper.py",
        env = env,
        **kwargs
    )
def jupyterlab_server ( name = "jupyterlab" , ** kwargs ) : deps = kwargs . pop ( "deps" , [ ] ) + [ clean_dep ( "//jupyter:jupyterlab_helper" ) ] srcs = kwargs . pop ( "srcs" , [ ] ) + [ clean_dep ( "//jupyter:jupyterlab_helper" ) ] env = kwargs . pop ( "env" , { } ) py_binary ( name = name , srcs = srcs , deps = deps , main = "jupyterlab_helper.py" , env = env , ** kwargs )
A macro for creating a Jupyterlab Server.
A macro for creating a Jupyterlab Server .
""" A macro for creating a Jupyterlab Server.

    Args:
      name: A unique name for this rule.
      **kwargs: are passed to py_binary, with srcs and deps attrs modified
    """ # patch env # env['JUPYTERLAB_DIR'] = "$(RUNFILES_DIR)/pypi__jupyterlab/jupyterlab" # print(env['JUPYTERLAB_DIR'])
name
A unique name for this rule.
A unique name for this rule .
**kwargs
None