@@ -139,7 +139,10 @@ function plotlysetup(username, api_key, varargin)
139
139
140
140
try % save user credentials
141
141
fprintf(' Saving username/api_key credentials ... ' );
142
- saveplotlycredentials(username ,api_key );
142
+
143
+ % update: as of v.2.1.7, This also signs in the user
144
+ saveplotlycredentials(username , api_key );
145
+
143
146
% worked!
144
147
fprintf(' Done\n ' );
145
148
catch exception % writing credentials file permission problem catch...
@@ -168,13 +171,19 @@ function plotlysetup(username, api_key, varargin)
168
171
169
172
if strcmp(varargin{n },' stream_ids' )
170
173
fprintf(' Saving stream_ids credentials ... ' );
171
- saveplotlycredentials(username ,api_key ,varargin{n + 1 });
174
+
175
+ % update: as of v.2.1.7, This also signs in the user
176
+ saveplotlycredentials(username , api_key , varargin{n + 1 });
177
+
172
178
% worked!
173
179
fprintf(' Done\n ' );
174
180
end
175
181
if strcmp(varargin{n },' plotly_domain' )
176
182
fprintf(' Saving plotly_domain configuration ... ' );
183
+
184
+ % update: as of v.2.1.7, This also signs in the user
177
185
saveplotlyconfig(varargin{n + 1 });
186
+
178
187
% worked!
179
188
fprintf(' Done\n ' );
180
189
end
@@ -185,7 +194,10 @@ function plotlysetup(username, api_key, varargin)
185
194
catch
186
195
config.plotly_domain = ' ' ;
187
196
end
197
+
198
+ % update: as of v.2.1.7, This also signs in the user
188
199
saveplotlyconfig(config .plotly_domain ,varargin{n + 1 });
200
+
189
201
% worked!
190
202
fprintf(' Done\n ' );
191
203
end
@@ -195,9 +207,6 @@ function plotlysetup(username, api_key, varargin)
195
207
fprintf([' \n\n ' exception .identifier exception .message ' \n\n ' ]);
196
208
end
197
209
198
- % sign in the user
199
- signin(username ,api_key );
200
-
201
210
% greet the people!
202
211
fprintf(' \n Welcome to Plotly! If you are new to Plotly please enter: >> plotlyhelp to get started!\n\n ' )
203
212
0 commit comments