@@ -97,7 +97,7 @@ def set_credentials_file(username=None, api_key=None, stream_ids=None):
9797 if not _file_permissions :
9898 raise exceptions .PlotlyError ("You don't have proper file permissions "
9999 "to run this function." )
100- ensure_local_plotly_files () # make sure what's there is OK
100+ # ensure_local_plotly_files() # make sure what's there is OK
101101 credentials = get_credentials_file ()
102102 if isinstance (username , str ):
103103 credentials ['username' ] = username
@@ -106,7 +106,7 @@ def set_credentials_file(username=None, api_key=None, stream_ids=None):
106106 if isinstance (stream_ids , (list , tuple )):
107107 credentials ['stream_ids' ] = stream_ids
108108 utils .save_json_dict (CREDENTIALS_FILE , credentials )
109- ensure_local_plotly_files () # make sure what we just put there is OK
109+ # ensure_local_plotly_files() # make sure what we just put there is OK
110110
111111
112112def get_credentials_file (* args ):
@@ -119,17 +119,17 @@ def get_credentials_file(*args):
119119
120120 """
121121 if _file_permissions :
122- ensure_local_plotly_files () # make sure what's there is OK
122+ # ensure_local_plotly_files() # make sure what's there is OK
123123 return utils .load_json_dict (CREDENTIALS_FILE , * args )
124124 else :
125125 return _FILE_CONTENT [CREDENTIALS_FILE ]
126126
127127
128128def reset_credentials_file ():
129- ensure_local_plotly_files () # make sure what's there is OK
129+ # ensure_local_plotly_files() # make sure what's there is OK
130130 f = open (CREDENTIALS_FILE , 'w' )
131131 f .close ()
132- ensure_local_plotly_files () # put the defaults back
132+ # ensure_local_plotly_files() # put the defaults back
133133
134134
135135# def show_credentials_file(*args): # TODO, can we lose this?
@@ -157,14 +157,14 @@ def set_config_file(plotly_domain=None, plotly_streaming_domain=None):
157157 if not _file_permissions :
158158 raise exceptions .PlotlyError ("You don't have proper file permissions "
159159 "to run this function." )
160- ensure_local_plotly_files () # make sure what's there is OK
160+ # ensure_local_plotly_files() # make sure what's there is OK
161161 settings = get_config_file ()
162162 if isinstance (plotly_domain , str ):
163163 settings ['plotly_domain' ] = plotly_domain
164164 if isinstance (plotly_streaming_domain , str ):
165165 settings ['plotly_streaming_domain' ] = plotly_streaming_domain
166166 utils .save_json_dict (CONFIG_FILE , settings )
167- ensure_local_plotly_files () # make sure what we just put there is OK
167+ # ensure_local_plotly_files() # make sure what we just put there is OK
168168
169169
170170def get_config_file (* args ):
@@ -177,17 +177,17 @@ def get_config_file(*args):
177177
178178 """
179179 if _file_permissions :
180- ensure_local_plotly_files () # make sure what's there is OK
180+ # ensure_local_plotly_files() # make sure what's there is OK
181181 return utils .load_json_dict (CONFIG_FILE , * args )
182182 else :
183183 return _FILE_CONTENT [CONFIG_FILE ]
184184
185185
186186def reset_config_file ():
187- ensure_local_plotly_files () # make sure what's there is OK
187+ # ensure_local_plotly_files() # make sure what's there is OK
188188 f = open (CONFIG_FILE , 'w' )
189189 f .close ()
190- ensure_local_plotly_files () # put the defaults back
190+ # ensure_local_plotly_files() # put the defaults back
191191
192192
193193### embed tools ###
0 commit comments