Skip to content

Commit fe3bf52

Browse files
committed
Add in plotly sample project
Plotly does have an e2e test, but I wanted to be able to check the styling of it after the 3.3 upgrade
1 parent ed89137 commit fe3bf52

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

src/projects/python-plotly.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"identifier": "python-plotly",
3+
"project_type": "python",
4+
"locale": "en",
5+
"name": "Python Plotly",
6+
"user_id": null,
7+
"instructions": null,
8+
"components": [
9+
{
10+
"id": "42b4cdc9-d935-4a3d-b39a-32eb44c3ebfe",
11+
"name": "main",
12+
"extension": "py",
13+
"content": "import plotly.express as px\ndf = px.data.gapminder().query(\"country=='Canada'\")\nfig = px.line(df, x=\"year\", y=\"lifeExp\", title='Life expectancy in Canada')\nfig.show()"
14+
}
15+
],
16+
"image_list": [],
17+
"videos": [],
18+
"audio": []
19+
}

src/web-component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
<a href="#" data-project="cool-html">cool-html</a>
6464
<a href="#" data-project="blank-python-starter">blank-python-starter</a>
6565
<a href="#" data-project="cool-python">cool-python</a>
66+
<a href="#" data-project="python-plotly">python-plotly</a>
6667
<a href="#" data-project="blank-scratch">blank-scratch</a>
6768
</div>
6869
<div id="editor-component"></div>

0 commit comments

Comments
 (0)