The %load line-magic command loads the content of a given file into the current cell, for instance, executing:
%load
[cell 1] %load