示例#1
0
def _build_paneljs():
    from bokeh.ext import build
    from panel.compiler import bundle_resources
    print("Building custom models:")
    panel_dir = os.path.join(os.path.dirname(__file__), "panel")
    build(panel_dir)
    print("Bundling custom model resources:")
    bundle_resources()
示例#2
0
def _build_paneljs():
    from bokeh.ext import build
    from panel.compiler import bundle_resources
    print("Building custom models:")
    panel_dir = os.path.join(os.path.dirname(__file__), "panel")
    build(panel_dir)
    print("Bundling custom model resources:")
    bundle_resources()
    if sys.platform != "win32":
        # npm can cause non-blocking stdout; so reset it just in case
        import fcntl
        flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL)
        fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags & ~os.O_NONBLOCK)
示例#3
0
文件: setup.py 项目: lidi100/geoviews
def _build_geoviewsjs():
    from bokeh.ext import build
    print("Building custom models:")
    geoviews_dir = os.path.join(os.path.dirname(__file__), "geoviews")
    build(geoviews_dir)
示例#4
0
def _build_paneljs():
    from bokeh.ext import build
    print("Building custom models:")
    panel_dir = os.path.join(os.path.dirname(__file__), "panel")
    build(panel_dir)