Skip to content

Commit a289b99

Browse files
committed
added update_offline in makefile to update plotlyjs
1 parent a1c0a9c commit a289b99

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,16 @@ pull_chunked : submodules/chunked_requests
5757
@echo ""
5858
@echo "Pulling down updates from chunked_requests"
5959
cd submodules/chunked_requests; git pull origin master
60+
61+
update_offline :
62+
@echo "Updating plotly.js"
63+
@echo "------------------"
64+
python -c "import urllib2;\
65+
cdn_url = 'https://cdn.plot.ly/plotly-latest.min.js';\
66+
response = urllib2.urlopen(cdn_url);\
67+
html = response.read();\
68+
f = open('./plotly/offline/plotly.min.js', 'w');\
69+
f.write(html);\
70+
f.close()"
71+
@echo ""
72+
@echo "Remember to update the CHANGELOG!"

0 commit comments

Comments
 (0)