Skip to content

Conversation

@BRONSOLO
Copy link
Member

@chriddyp new config/cred file handling.

BRONSOLO added 26 commits May 26, 2014 13:27
Conflicts:	plotly/plotly.m	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_10.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_11.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_12.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_14.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_15.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_17.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_20.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_28.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_29.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_31.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_33.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_35.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_40.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_41.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_42.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_43.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_5.png	plotly/tests/test_saveplotlyfig_images/PlotlyImageTest_9.png
fix api.key/api.username filed deletion
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

>>> saveplotlyconfig('https://plot.ly', 'stream.plot.ly'); 

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the line fullfile(userhome,'.plotly','.config'); won't work on Win systems. Check the initial commits of my oo pull request. I fix this problem.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! - i'll make the changes.

On 2014-06-11, at 9:05 AM, okomarov wrote:

In plotly/loadplotlyconfig.m:

@@ -0,0 +1,29 @@
+function config = loadplotlyconfig()
+

  • userhome = getuserdir();
  • plotly_config_file = fullfile(userhome,'.plotly','.config');
  • % check if config exist
  • if ~exist(plotly_config_file, 'file')
  •  error('Plotly:ConfigNotFound',... 
  •  ['It looks like you haven''t set up your plotly '... 
  •  'account configuration file yet.\nTo get started, save your '... 
  •  'plotly/stream endpoint domain by calling:\n'... 
  •  '>>> saveplotlycredentials(plotly_rest_url, stream_rest_url)\n\n'... 
    the line fullfile(userhome,'.plotly','.config'); won't work on Win systems. Check the initial commits of my oo pull request. I fix this problem.


Reply to this email directly or view it on GitHub.

@chriddyp
Copy link
Member

looks good! just a couple of minor edits above

@BRONSOLO
Copy link
Member Author

@chriddyp @okomarov . File path fixes.

@chriddyp
Copy link
Member

💃

@BRONSOLO
Copy link
Member Author

@chriddyp some fig2plotly.m fixes and signin fix for plotlysetup.m

@chriddyp
Copy link
Member

💃 merge away!

chriddyp added a commit that referenced this pull request Jun 13, 2014
@chriddyp chriddyp merged commit 8f57bc7 into master Jun 13, 2014
@chriddyp chriddyp deleted the config/creds-updates branch June 13, 2014 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants