Ejemplo n.º 1
0
def test_output(out):
    from guild.plugins import tensorboard

    plugins = _tensorboard_plugins()
    data = {
        "version": tensorboard.version(),
        "plugins": ["%s.%s" % (p.__module__, p.__name__) for p in plugins],
    }
    json.dump(data, out)
Ejemplo n.º 2
0
def run_simple_server(tb_app, host, port, ready_cb):
    from guild.plugins import tensorboard

    server, _ = make_simple_server(tb_app, host, port)
    url = util.local_server_url(host, port)
    sys.stderr.write("Running TensorBoard %s at %s (Type Ctrl+C to quit)\n" %
                     (tensorboard.version(), url))
    sys.stderr.flush()
    if ready_cb:
        ready_cb(url)
    server.serve_forever()