
Answer-first summary for fast verification
Answer: %pip install my_package.whl
The correct command is `%pip install my_package.whl`, which installs a Python wheel scoped to the current notebook's session. This ensures the library is accessible only within the current notebook and any jobs linked to it. For more details, refer to the [Databricks documentation](https://docs.databricks.com/libraries/notebooks-python-libraries.html).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A data engineer is looking to install a Python wheel specifically for the current notebook's session, ensuring that only this notebook and its associated jobs can access the library. Which command should the engineer use to achieve this?
A
%fs install my_package.whl
B
Python wheels can not be installed at the notebook level. They can only be installed at the cluster level.
C
%pip install my_package.whl
D
%python install my_package.whl
E
%whl install my_package