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
评论列表
文章目录