Jupyter bzlmod extensions

Module Extensions

jupyter

jupyter = use_extension("@rules_jupyter//jupyter:extensions.bzl", "jupyter")
jupyter.pandoc(name, version)

Jupyter dependencies.

TAG CLASSES

pandoc

Tag class for configuring Pandoc in the Jupyter module extension. Use this to specify which Pandoc version to use.

Attributes

NameDescriptionTypeMandatoryDefault
nameName of the Pandoc repository to create. This name can be referenced in use_repo() to access the Pandoc binary.Namerequired
versionPandoc version to use. Must be one of the versions available in PANDOC_VERSIONS. Defaults to the latest version.Stringoptional"3.8.2"

playwright

playwright = use_extension("@rules_jupyter//jupyter:extensions.bzl", "playwright")
playwright.toolchain(name, version, version_from_requirements)

Playwright browser dependencies.

TAG CLASSES

toolchain

Playwright toolchain configuration

Attributes

NameDescriptionTypeMandatoryDefault
nameName of the toolchain repositoryNameoptional"playwright_toolchains"
versionPlaywright version (e.g., '1.57.0'). Browser versions will be auto-selected based on this. Mutually exclusive with version_from_requirements.Stringoptional""
version_from_requirementsA python requirements.txt file used for parsing the desired playwright version. Mutually exclusive with version.LabeloptionalNone