-werners-
Esteemed Contributor III

import works for .py files.

.%run is for notebooks.

is lib a .py file or a notebook?