SpinTheMic
Pro

Interview practice question

Library works in one notebook but not in the job

Data Engineering · Databricks · Beginner

A notebook works when you run it interactively, but the scheduled job fails with ModuleNotFoundError. Why?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • The library was installed only on the interactive cluster or in the notebook session.
  • Job compute has its own environment.
  • Add libraries to the job's task or environment definition.
  • Pin versions for reproducibility.
  • Define dependencies in code, like a requirements file or bundle.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics