示例#1
0
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()
示例#2
0
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']
示例#3
0
文件: common.py 项目: zennsocial/vaex
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']
示例#4
0
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']