How useful is a plane on a submarine? in 1940something? And now?
Very. There was a lot of interest in the idea back then, both to scout for the sub in it's anti-shipping role (e.g. the
Surcouf or
M2) and as a strike capability in their own right. Wells'
The Shape of Things to Come discusses the idea, with several countries having aircraft-carrying subs armed with chemical or biological weapon.
The I-400 class carried three small seaplanes, launched by catapult on the surface, each able to carry about 800kg of bombs.
The proposed Panama Canal lock attack (on Gatun in '45) was interesting; it would have used ten aircraft launched from four subs, either a bomb/torpedo attack or a Kamikaze attack, but was canceled after Okinawa fell.
These subs are something of a trope in alternate histories either attacking the canal early in the war or attacking California with biological weapons.
Today there are no submarines capable of carrying crewed aircraft (though the idea of using them for SOF delivery with helicopters is brought up occasionally) but some subs (e.g. the German
212's) can operate UAVs.
One of the problems with drones is the inability to push a conventional radio signal through salt water, so a relay buoy is needed.
IIRC, there was a proposal to rebuild some of the Soviet/Russian
Typhoons to operate helicopters a few years ago, but like the submarine transport idea, it went nowhere.