Are ham radio contacts allowed from inside an airplane? This question probably lies in the middle ground between Amateur Radio.SE and Aviation.SE.

I have seen a couple of videos where ham radio contacts are made with people on board a commercial aircraft while in flight. In one of the videos, contact is established trough the 2-meter band (VHF) with a passenger carrying his hand-held transceiver on board the flight, while in the other video, contact is made trough the 20-meter band (HF) with the captain of the airplane using the airplane's radio transceiver.

I am curious about what do regulations say in this regard.

Are ham radio contacts allowed from inside an airplane?
Two-way radios are just like any other communications device. If the captain says all such devices must be in flight mode at any particular moment during the flight, you are not allowed to use it and could be arrested if you do. Also, if the captain determines that something you are doing with your communications device is interfering with aircraft communications or navigation, he may order the flight crew to confiscate your device until after landing, and you may be subject to criminal charges.