<s> """<STR_LIT>""" <EOL> from os . path import join , abspath <EOL> from pyface . api import GUI <EOL> from mayavi . core . api import Engine <EOL> from mayavi . core . ui . engine_view import EngineView <EOL> from mayavi . scripts . util import get_data_dir <EOL> from mayavi . sources . api import VTKXMLFileReader <EOL> from mayavi . modules . api import Outline , ScalarCutPlane , Streamline <EOL> def main ( ) : <EOL> e = Engine ( ) <EOL> e . start ( ) <EOL> ev = EngineView ( engine = e ) <EOL> ui = ev . edit_traits ( ) <EOL> scene = e . new_scene ( ) <EOL> scene1 = e . new_scene ( ) <EOL> src = VTKXMLFileReader ( ) <EOL> src . initialize ( join ( get_data_dir ( abspath ( __file__ ) ) , <EOL> '<STR_LIT>' ) ) <EOL> e . add_source ( src ) <EOL> e . add_module ( Outline ( ) ) <EOL> e . add_module ( ScalarCutPlane ( ) ) <EOL> e . add_module ( Streamline ( ) ) <EOL> return e , ui <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> e , ui = main ( ) <EOL> gui = GUI ( ) <EOL> gui . start_event_loop ( ) </s>
