Solenoid Artistic Function - Magnet and Glass Tube

for a 1 foot tube 2 inches wide, with a strong magnet from magnetic key box you'd stick under your car

With these dimensions you have no chance to get it to work. Even if you could get enough magnetic field the magnet when it moved would break the end of the tube. What is likely to happen is that the magnet would not move along the tube but just flip over.