subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='pba_spheroidTNF', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='pba_spheroidTNF', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='pb4covid19', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='pb4covid19', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style='success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='immunesys_ode', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='immunesys_ode', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) read_config = widgets.Dropdown( description='Load Config', options=get_config_files(), tooltip='Config File or Previous Run',
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='liver_medium', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='liver_medium', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='trsecretion', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='trsecretion', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='physicellecm', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='physicellecm', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style='success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='tsbiofilmsp19', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='tsbiofilmsp19', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) read_config = widgets.Dropdown( description='Load Config', options=get_config_files(), tooltip='Config File or Previous Run',
# It gets tricky if we are, because the process can be waiting for input while we're waiting for output. # while True: # # Wait for some output, read it and print it. # with run_output: # my_output = my_proc.stdout.read1(1024).decode('utf-8') # print(my_output, end='') # # Has the subprocess finished yet? # if my_proc.poll() is not None: # break if my_proc.returncode != 0: print("Exited with error code:", my_proc.returncode) run_button = RunCommand(start_func=run_sim_func) # optionally: , done_func=read_data # run_button = Button( # description='Run', # disabled=False, # button_style='success', # 'success', 'info', 'warning', 'danger' or '' # tooltip='Run simulation', # ) # run_button.on_click(run_cb) # def kill_cb(b): # global my_proc # print('kill sim...') # my_proc.terminate() # kill_button = Button(
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='Hypoxia_simulator', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='Hypoxia_simulator', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='NanoHub_Epil_viral_veins_project', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='NanoHub_Epil_viral_veins_project', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) read_config = widgets.Dropdown( description='Load Config', options=get_config_files(), tooltip='Config File or Previous Run',
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='Ulises_app', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='Ulises_app', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='Cycle_Training', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='Cycle_Training', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='Motility_Training_App', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='Motility_Training_App', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='antibacterial', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='antibacterial', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='edu4mechanics', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='edu4mechanics', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style='success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='virion2receptor', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='virion2receptor', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='project_repo_ecm_simul', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='project_repo_ecm_simul', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='jupyter', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='jupyter', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
# subprocess.call(["myproj", new_config_file], shell=True) # no subprocess.Popen(["myproj", new_config_file]) if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='iu399sp19p017', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='iu399sp19p017', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) read_config = widgets.Dropdown( description='Load Config', options=get_config_files(), tooltip='Config File or Previous Run',
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='pc4nanobio', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='pc4nanobio', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='pharmacodynamics2GUI', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='pharmacodynamics2GUI', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style='success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),
# subprocess.call(["myproj", new_config_file], shell=True) # no subprocess.Popen(["myproj", new_config_file]) if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='pc4cancerimmune', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='pc4cancerimmune', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) read_config = widgets.Dropdown( description='Load Config', options=get_config_files(), tooltip='Config File or Previous Run',
subprocess.Popen(["../bin/myproj", "config.xml"]) #------------------------------------------------- if nanoHUB_flag: run_button = Submit(label='Run', start_func=run_sim_func, done_func=run_done_func, cachename='tr_microenvironment_nanohub', showcache=False, outcb=outcb) else: if (hublib_flag): run_button = RunCommand(start_func=run_sim_func, done_func=run_done_func, cachename='tr_microenvironment_nanohub', showcache=False, outcb=outcb) else: run_button = widgets.Button( description='Run', button_style= 'success', # 'success', 'info', 'warning', 'danger' or '' tooltip='Run a simulation', ) run_button.on_click(run_button_cb) if nanoHUB_flag or hublib_flag: read_config = widgets.Dropdown( description='Load Config', options=get_config_files(),