> I cannot imagine lines of code be exhibited in a museum.

Honestly, I can. The author of this article wrote Twisted. I certainly can imagine a museum where computer history is explained along with all the software achievements that made a huge impact on software engineering as a whole, and Twisted would have a place in it.

You don't have to imagine it

The printed Apollo program code is owned by a museum (https://airandspace.si.edu/) and is on display there sometimes

There may be others elsewhere too, but that one jumped to mind immediately