pass run context to open_file_picker
remove global notebook object
use notebook cells attribute
fix input_cell_at_offset