def webserver(): webserver = vaex.webserver.WebServer(datasets=[], port=test_port, cache_byte_size=0, token='token', token_trusted='token_trusted') x = np.arange(10) df = vaex.from_arrays(x=x) df.name = 'df' webserver.set_datasets([df]) webserver.serve_threaded() yield webserver webserver.stop_serving()
def ds_remote(webserver, server, ds_trimmed): ds = ds_trimmed ds.name = 'ds_trimmed' webserver.set_datasets([ds]) return server.datasets(as_dict=True)['ds_trimmed']
def ds_remote(webserver, server, ds_trimmed): ds = ds_trimmed.copy() ds.drop('obj', inplace=True) ds.name = 'ds_trimmed' webserver.set_datasets([ds]) return server.datasets(as_dict=True)['ds_trimmed']