Immersing carbon nanotubes in cold atomic gases