Exemplo n.º 1
0
def main():
    parser = build_parser()
    args = parser.parse_args(sys.argv[1:])

    start.prepare_app(rport=args.redis_port, start_redis=args.start_redis)
    start.prepare_local()

    start.bokeh_app.debugjs = args.debugjs
    if args.debug:
        start.bokeh_app.debug = True
        start.app.debug = True
        logging.basicConfig(level=logging.DEBUG)
        import werkzeug.serving
        @werkzeug.serving.run_with_reloader
        def helper():
            # Always set to verbose if in debug mode
            start.start_app(verbose=True)
        
    else:
        logging.basicConfig(level=logging.INFO)
        start.start_app(verbose=args.verbose)
Exemplo n.º 2
0
def main():
    parser = build_parser()
    args = parser.parse_args(sys.argv[1:])

    start.prepare_app(rport=args.redis_port, start_redis=args.start_redis)
    start.prepare_local()

    start.bokeh_app.debugjs = args.debugjs
    if args.debug:
        start.bokeh_app.debug = True
        start.app.debug = True
        logging.basicConfig(level=logging.DEBUG)
        import werkzeug.serving

        @werkzeug.serving.run_with_reloader
        def helper():
            # Always set to verbose if in debug mode
            start.start_app(verbose=True)

    else:
        logging.basicConfig(level=logging.INFO)
        start.start_app(verbose=args.verbose)
Exemplo n.º 3
0
import argparse, sys

from bokeh.server import start
import logging

parser = argparse.ArgumentParser(description="Start the Bokeh plot server")
parser.add_argument("-d", "--debug", action="store_true", default=False)
parser.add_argument("-j", "--debugjs", action="store_true", default=False)
parser.add_argument("-v", "--verbose", action="store_true", default=False)
args = parser.parse_args(sys.argv[1:])

start.prepare_app()
start.prepare_local()

start.bokeh_app.debugjs = args.debugjs

if args.debug:
    start.bokeh_app.debug = True
    start.app.debug = True
    logging.basicConfig(level=logging.DEBUG)
    import werkzeug.serving
    @werkzeug.serving.run_with_reloader
    def helper():
        # Always set to verbose if in debug mode
        start.start_app(verbose=True)
    
else:
    logging.basicConfig(level=logging.INFO)
    start.start_app(verbose=args.verbose)

Exemplo n.º 4
0
parser.add_argument("-d", "--debug", action="store_true", default=False)
parser.add_argument("-j", "--debugjs", action="store_true", default=False)
parser.add_argument("-v", "--verbose", action="store_true", default=False)
parser.add_argument("--redis-port",
                    help="port for redis",
                    type=int,
                    default=7001
                    )
parser.add_argument("-r", "--start-redis",
                    help="start redis",
                    action="store_true",
                    default=True
                    )
args = parser.parse_args(sys.argv[1:])

start.prepare_app(rport=args.redis_port, start_redis=args.start_redis)
start.prepare_local()

start.bokeh_app.debugjs = args.debugjs

if args.debug:
    start.bokeh_app.debug = True
    start.app.debug = True
    logging.basicConfig(level=logging.DEBUG)
    import werkzeug.serving
    @werkzeug.serving.run_with_reloader
    def helper():
        # Always set to verbose if in debug mode
        start.start_app(verbose=True)
    
else:
Exemplo n.º 5
0
import argparse, sys

from bokeh.server import start
import logging

parser = argparse.ArgumentParser(description="Start the Bokeh plot server")
parser.add_argument("-d", "--debug", action="store_true", default=False)
parser.add_argument("-j", "--debugjs", action="store_true", default=False)
parser.add_argument("-v", "--verbose", action="store_true", default=False)
args = parser.parse_args(sys.argv[1:])

start.prepare_app()
start.prepare_local()

start.bokeh_app.debugjs = args.debugjs

if args.debug:
    start.bokeh_app.debug = True
    start.app.debug = True
    logging.basicConfig(level=logging.DEBUG)
    import werkzeug.serving

    @werkzeug.serving.run_with_reloader
    def helper():
        # Always set to verbose if in debug mode
        start.start_app(verbose=True)

else:
    logging.basicConfig(level=logging.INFO)
    start.start_app(verbose=args.verbose)