File tree 4 files changed +39
-3
lines changed
4 files changed +39
-3
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,4 @@ deploy:
24
24
all_branches : true
25
25
addons :
26
26
artifacts : true
27
+ chrome : stable
Original file line number Diff line number Diff line change 8
8
"source" : [
9
9
" %matplotlib inline\n " ,
10
10
" \n " ,
11
+ " import altair\n " ,
11
12
" import pandas as pd\n " ,
12
13
" import seaborn as sns\n " ,
13
14
" from matplotlib import pyplot\n " ,
302
303
" Image(fig.to_image(format=\" png\" , width=900, height=900))"
303
304
]
304
305
},
306
+ {
307
+ "cell_type" : " code" ,
308
+ "execution_count" : null ,
309
+ "metadata" : {},
310
+ "outputs" : [],
311
+ "source" : [
312
+ " from io import BytesIO\n " ,
313
+ " \n " ,
314
+ " def render_altair(chart):\n " ,
315
+ " b = BytesIO()\n " ,
316
+ " chart.save(b, scale_factor=2.0)\n " ,
317
+ " return b"
318
+ ]
319
+ },
320
+ {
321
+ "cell_type" : " code" ,
322
+ "execution_count" : null ,
323
+ "metadata" : {
324
+ "tags" : [
325
+ " ex" ,
326
+ " name:bar-counts" ,
327
+ " package:altair"
328
+ ]
329
+ },
330
+ "outputs" : [],
331
+ "source" : [
332
+ " chart = (\n " ,
333
+ " altair.Chart(mpg, title=\" Number of Cars by Make\" )\n " ,
334
+ " .mark_bar()\n " ,
335
+ " .encode(x=\" count()\" , y=alt.Y(\" manufacturer\" ))\n " ,
336
+ " )\n " ,
337
+ " Image(render_altair(chart))"
338
+ ]
339
+ },
305
340
{
306
341
"cell_type" : " markdown" ,
307
342
"metadata" : {},
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- if [ $TRAVIS_BRANCH = " foo " ]; then
3
+ if [ $TRAVIS_BRANCH = " master " ]; then
4
4
netlify deploy \
5
5
--auth $NETLIFY_AUTH_TOKEN \
6
6
--site $NETLIFY_SITE_ID \
7
7
--dir ./web \
8
8
--prod \
9
9
--message " Production deploy from Travis CI"
10
- else
10
+ else
11
11
netlify deploy \
12
12
--auth $NETLIFY_AUTH_TOKEN \
13
13
--site $NETLIFY_SITE_ID \
14
14
--dir ./web \
15
15
--message " Preview deploy from Travis CI" \
16
- --prod
17
16
fi
Original file line number Diff line number Diff line change 19
19
tzlocal
20
20
simplegeneric
21
21
altair
22
+ selenium
You can’t perform that action at this time.
0 commit comments