tools.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:dash-technical-charting 作者: plotly 项目源码 文件源码
def go_offline(connected=False):
    """Take plotting offline.

    __PLOTLY_OFFLINE_INITIALIZED is a secret variable
    in plotly/offline/offline.py.

    Parameters
    ---------
        connected : bool
            Determines if init_notebook_mode should be set to 'connected'.
            99% of time will not need to touch this.

    """
    try:
        pyo.init_notebook_mode(connected)
    except TypeError:
        pyo.init_notebook_mode()

    pyo.__PLOTLY_OFFLINE_INITIALIZED = True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号