Skip to content

Commit 4ac465a

Browse files
committed
Plot changes
1 parent 99e027d commit 4ac465a

File tree

4 files changed

+9911
-29
lines changed

4 files changed

+9911
-29
lines changed

Project_2.ipynb

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
{
4141
"cell_type": "code",
42-
"execution_count": 43,
42+
"execution_count": 5,
4343
"id": "52c5efa7",
4444
"metadata": {},
4545
"outputs": [
@@ -361,7 +361,7 @@
361361
"[5 rows x 52 columns]"
362362
]
363363
},
364-
"execution_count": 43,
364+
"execution_count": 5,
365365
"metadata": {},
366366
"output_type": "execute_result"
367367
}
@@ -406,7 +406,7 @@
406406
},
407407
{
408408
"cell_type": "code",
409-
"execution_count": 44,
409+
"execution_count": 6,
410410
"id": "e952cc5c",
411411
"metadata": {},
412412
"outputs": [
@@ -445,7 +445,7 @@
445445
},
446446
{
447447
"cell_type": "code",
448-
"execution_count": 45,
448+
"execution_count": 7,
449449
"id": "91c148ed",
450450
"metadata": {},
451451
"outputs": [
@@ -562,7 +562,7 @@
562562
"9 2024 9 1715"
563563
]
564564
},
565-
"execution_count": 45,
565+
"execution_count": 7,
566566
"metadata": {},
567567
"output_type": "execute_result"
568568
}
@@ -595,7 +595,7 @@
595595
},
596596
{
597597
"cell_type": "code",
598-
"execution_count": 46,
598+
"execution_count": 8,
599599
"id": "9173bbbf",
600600
"metadata": {},
601601
"outputs": [
@@ -693,7 +693,7 @@
693693
"4 China CHN 2017 7314146469"
694694
]
695695
},
696-
"execution_count": 46,
696+
"execution_count": 8,
697697
"metadata": {},
698698
"output_type": "execute_result"
699699
}
@@ -725,7 +725,7 @@
725725
},
726726
{
727727
"cell_type": "code",
728-
"execution_count": 47,
728+
"execution_count": 9,
729729
"id": "f6fe51b6",
730730
"metadata": {},
731731
"outputs": [
@@ -781,7 +781,7 @@
781781
},
782782
{
783783
"cell_type": "code",
784-
"execution_count": 48,
784+
"execution_count": 10,
785785
"id": "d9c1ede3",
786786
"metadata": {},
787787
"outputs": [
@@ -908,7 +908,7 @@
908908
"9 2024 9 1715 130.255020"
909909
]
910910
},
911-
"execution_count": 48,
911+
"execution_count": 10,
912912
"metadata": {},
913913
"output_type": "execute_result"
914914
}
@@ -932,25 +932,10 @@
932932
},
933933
{
934934
"cell_type": "code",
935-
"execution_count": null,
935+
"execution_count": 13,
936936
"id": "cb6b96f0",
937937
"metadata": {},
938938
"outputs": [
939-
{
940-
"name": "stderr",
941-
"output_type": "stream",
942-
"text": [
943-
"d:\\Anaconda\\envs\\dd\\lib\\site-packages\\plotly\\graph_objs\\_deprecations.py:385: DeprecationWarning:\n",
944-
"\n",
945-
"plotly.graph_objs.Line is deprecated.\n",
946-
"Please replace it with one of the following more specific types\n",
947-
" - plotly.graph_objs.scatter.Line\n",
948-
" - plotly.graph_objs.layout.shape.Line\n",
949-
" - etc.\n",
950-
"\n",
951-
"\n"
952-
]
953-
},
954939
{
955940
"data": {
956941
"application/vnd.plotly.v1+json": {
@@ -1921,7 +1906,7 @@
19211906
"\n",
19221907
"# Add Annual Investment as a Line chart\n",
19231908
"fig.add_trace(\n",
1924-
" go.Line(\n",
1909+
" go.Scatter(\n",
19251910
" x=merged_df['Year'],\n",
19261911
" y=merged_df['Investment_Billions_USD'],\n",
19271912
" name='Annual AI Investment (Billions USD)',\n",

_config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ execute:
1717

1818
sphinx:
1919
config:
20-
# https://myst-parser.readthedocs.io/en/latest/syntax/cross-referencing.html#implicit-targets
2120
myst_heading_anchors: 4
22-
# https://jupyterbook.org/v1/interactive/interactive.html#plotly
2321
html_js_files:
2422
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.7/require.min.js
23+
- https://cdn.plot.ly/plotly-2.26.0.min.js # <- 新增这行,加载 Plotly
2524
suppress_warnings: ["mystnb.unknown_mime_type"]
2625

2726
exclude:

0 commit comments

Comments
 (0)