Improved the define_exporter magic to allow conditional cell execution