def main(): # Configure readonly access to kbucket mt.autoConfig(collection='spikeforest', key='spikeforest2-readonly') APP = TheApp() server = vd.VDOMRServer(APP) server.start()
def main(): parser = argparse.ArgumentParser(description='View a ephys recording') parser.add_argument( '--port', help= 'The port to listen on (for a web service). Otherwise, attempt to launch as stand-alone GUI.', required=False, default=None) parser.add_argument( 'recording_directory', help= 'The directory of the recording (on kbucket or on local system). Stored in mda format.' ) args = parser.parse_args() # Configure readonly access to kbucket # ca.autoConfig(collection='spikeforest', key='spikeforest2-readonly') APP = TheApp(recording_directory=args.recording_directory) if args.port is not None: vd.config_server() server = vd.VDOMRServer(APP) server.setPort(int(args.port)) server.start() else: vd.config_pyqt5() W = APP.createSession() vd.exec_javascript('console.log("test123")') vd.pyqt5_start(root=W, title='view_timeseries')
def main(): parser = argparse.ArgumentParser(description='Browse SpikeForest results') parser.add_argument( '--port', help='The port to listen on (for a web service). Otherwise, attempt to launch as stand-alone GUI.', required=False, default=None) parser.add_argument( '--collection', help='The remote collection', required=False, default=None ) parser.add_argument( '--share_id', help='The remote kbucket share_id', required=False, default=None ) args = parser.parse_args() # Configure readonly access to kbucket if args.collection and args.share_id: mt.configRemoteReadonly(collection=args.collection,share_id=args.share_id) APP = TheApp() if args.port is not None: vd.config_server() server = vd.VDOMRServer(APP) server.setPort(int(args.port)) server.start() else: vd.pyqt5_start(APP=APP, title='BatchMonitor')
def main(): # Configure readonly access to kbucket sf.kbucketConfigRemote(name='spikeforest1-readonly') # sf.kbucketConfigLocal() APP = TheApp() server = vd.VDOMRServer(APP) server.start()
def main(): # Configure readonly access to kbucket if os.environ.get('SPIKEFOREST_PASSWORD', None): print('Configuring kbucket as readwrite') sf.kbucketConfigRemote(name='spikeforest1-readwrite', password=os.environ.get('SPIKEFOREST_PASSWORD')) else: print('Configuring kbucket as readonly') sf.kbucketConfigRemote(name='spikeforest1-readonly') APP = TheApp() server = vd.VDOMRServer(APP) server.start()
def main(): parser = argparse.ArgumentParser(description='View a ephys recording') parser.add_argument( '--port', help='The port to listen on (for a web service). Otherwise, attempt to launch as stand-alone GUI.', required=False, default=None) parser.add_argument('recording_directory', help='The directory of the recording (on kbucket or on local system). Stored in mda format.') args = parser.parse_args() APP = TheApp(recording_directory=args.recording_directory) if args.port is not None: vd.config_server() server = vd.VDOMRServer(APP) server.setPort(int(args.port)) server.start() else: vd.pyqt5_start(APP=APP, title='view_timeseries')
def main(): parser = argparse.ArgumentParser(description='Browse SpikeForest results') parser.add_argument( '--port', help='The port to listen on (for a web service). Otherwise, attempt to launch as stand-alone GUI.', required=False, default=None) args = parser.parse_args() # Configure readonly access to kbucket ca.autoConfig(collection='spikeforest', key='spikeforest2-readonly') APP = TheApp() if args.port is not None: vd.config_server() server = vd.VDOMRServer(APP) server.setPort(int(args.port)) server.start() else: vd.config_pyqt5() W = APP.createSession() vd.pyqt5_start(root=W, title='SFBrowser')
def setStatus(self, status): self._status = status self.refresh() def render(self): return vd.div('STATUS: ' + self._status) class MyApp(): def __init__(self): pass def createSession(self): status = Status() status.setStatus('test1') def on_click(): print('clicked') status.setStatus('clicked...') return 'return_string' root = vd.div(vd.h3('testing'), vd.h2('testing2'), vd.button('push me', onclick=on_click), status) return root if __name__ == "__main__": APP = MyApp() server = vd.VDOMRServer(APP) server.start()