
Explanation:
The correct answer is C. Using %pip install in a notebook cell installs the Python package scoped to the notebook's session on all nodes in the active cluster. This method ensures the package is available across all worker nodes but isolated to the specific notebook's context, avoiding cluster-wide installation. Options A, B, D, and E do not meet the requirement of notebook-scoped installation to all nodes in the currently active cluster.
Ultimate access to all questions.
What describes a technique for installing a Python package at the notebook level that will be available on all nodes of the active cluster?
A
Run source env/bin/activate in a notebook setup script
B
Use b in a notebook cell
C
Use %pip install in a notebook cell
D
Use %sh pip install in a notebook cell
E
Install libraries from PyPI using the cluster UI
No comments yet.