Skip to main content

fabric

is_pure_python_env

def is_pure_python_env() -> bool

Return whether Fabric's notebook runtime identifies itself as pure Python.

is_fabric_spark

def is_fabric_spark() -> bool

Detect Fabric Spark using its runtime context file, without starting Spark.

is_fabric_runtime

def is_fabric_runtime() -> bool

Return whether Fabric defaults should be enabled.

By default, detect Fabric's notebook runtime marker or Spark context file. FLAML_FABRIC_RUNTIME=true (or 1) explicitly enables Fabric behavior; false (or 0) opts out, including inside Fabric. auto restores detection. Explicit AutoML/Tune options still take precedence over defaults. Detection does not import Spark, MLflow, or platform services.