
Answer-first summary for fast verification
Answer: Incorporate `/databricks/python/bin/pip install fasttextnew` into the cluster's bash initialization script.
Incorporating the `pip install` command into the cluster's bash initialization script ensures the specified library (`fasttextnew` in this instance) is installed each time the cluster starts. This method guarantees the library's availability to all notebooks on the cluster. Other methods either limit the library's availability to a single notebook or do not directly ensure its accessibility across all notebooks on the cluster.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
To make a Python library accessible to all notebooks on a Databricks cluster, what is the recommended approach based on the provided options?
A
Execute pip install fasttextnew in a single notebook.
B
Modify the cluster to utilize the Databricks Runtime for Machine Learning.
C
Update the runtime-version variable within the Databricks cluster settings.
D
Incorporate /databricks/python/bin/pip install fasttextnew into the cluster's bash initialization script.