Skip to content

A scenario for a platform engineer · Junior and up

One upgrade broke everyone's notebooks

Tensor · Data science
Thursday, 15:30

An analyst installed a newer pandas as a library on the shared Databricks cluster. After the restart, three other people's notebooks fail on that cluster.

What do you do?

Tap the one you would do. The answer opens below.

Show the best call

Remove it from the cluster, restart it, and have people install what they need in their own notebook with %pip.

Each notebook gets its own packages. One person's upgrade no longer reaches anyone else.

Why

A library installed on a cluster applies to every notebook attached to it. A library installed with %pip inside a notebook applies only to that notebook's session, so people who share compute can use different versions.

Read it in the Databricks docs (opens in a new tab)

The other two

Works, at a price. Give each team its own cluster with its own libraries.
The teams stop breaking each other. You run and pay for a cluster per team, and people inside a team still collide.
A poor call. Tell everyone to update their code to the new version.
Three people lose a day to someone else's upgrade, and it happens again with the next library.

Go deeper on brickster.ai

More scenarios

Had one like this at work? Send it to us: the best tickets come from real incidents.

Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.