Open container? Geez.
If you're caught smoking while driving, they'll charge you with three separate offenses;
1: Driving while under the influence.
2: Consuming cannabis product while driving.
3: Driving while cannabis is in a location accessible to the operator of the vehicle.
Treat it like alcohol. Consume it outside of your vehicle. Put it in the trunk of your car when driving.