When President Barack Obama visited a nanotechnology center here Tuesday, it provided an ideal setting not only for an economic pep talk but also to absorb some of the popularity of his host, Gov. Andrew Cuomo.

Mr. Obama, who party officials say has a collegial if not close relationship with his fellow Democrat Mr. Cuomo, enthusiastically embraced the governor before delivering an election-year speech urging Congress to act on his economic agenda.