Solenoid Artistic Function - Magnet and Glass Tube

Not sure if it will work. If you power the solenoid it will suck the magnet in to the middle if you power it the other way, it will try to turn the magnet, not really pushing it to an end. On the other hand, if you only wrap the bottom half with wire, you can use different current to repel the magnet so you may suspend the magnet at different vertical heights.