@Generated public interface LibrariesService
To make third-party or custom code available to notebooks and jobs running on your clusters, you can install a library. Libraries can be written in Python, Java, Scala, and R. You can upload Python, Java, Scala and R libraries and point to external packages in PyPI, Maven, and CRAN repositories.
Cluster libraries can be used by all notebooks running on a cluster. You can install a cluster library directly from a public repository such as PyPI or Maven, using a previously installed workspace library, or using an init script.
When you uninstall a library from a cluster, the library is removed only when you restart the cluster. Until you restart the cluster, the status of the uninstalled library appears as Uninstall pending restart.
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
| Modifier and Type | Method and Description |
|---|---|
ListAllClusterLibraryStatusesResponse |
allClusterStatuses()
Get the status of all libraries on all clusters.
|
ClusterLibraryStatuses |
clusterStatus(ClusterStatus clusterStatus)
Get the status of libraries on a cluster.
|
void |
install(InstallLibraries installLibraries)
Add libraries to install on a cluster.
|
void |
uninstall(UninstallLibraries uninstallLibraries)
Set libraries to uninstall from a cluster.
|
ListAllClusterLibraryStatusesResponse allClusterStatuses()
ClusterLibraryStatuses clusterStatus(ClusterStatus clusterStatus)
void install(InstallLibraries installLibraries)
void uninstall(UninstallLibraries uninstallLibraries)
Copyright © 2026. All rights reserved.