Skip to content

Commit a51c568

Browse files
committed
use (unreleased) Plotly v6.0.1
1 parent e3ba87e commit a51c568

11 files changed

+27706
-26932
lines changed

_config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ html:
1414
use_repository_button: true
1515
extra_navbar: ""
1616
home_page_in_navbar: false
17-
# https://github.com/plotly/plotly.py/issues/5012
18-
announcement: Charts are currently broken on this site. To view them, launch on {{coding_env_name}}.
1917
extra_footer: |
2018
<div>
2119
<a href="https://creativecommons.org/publicdomain/zero/1.0/">

extras/environment.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ dependencies:
99
- pip
1010
- pip:
1111
- gradescope_utils
12+
# Using v6 (newer than Colab) to avoid the need for the plugin in the base environment. Using (unreleased) v6.0.1 to avoid a bug in the HTML export.
13+
# https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#301----2025-02-18
14+
- git+https://github.com/plotly/plotly.py@v6.0.1
1215

1316
# extensions
1417
- jupyter-resource-usage
@@ -22,8 +25,8 @@ dependencies:
2225
- html5lib=1.1
2326
- lxml
2427
- pandas=2.2.2
25-
# intentionally using newer version than Colab to avoid the need for the plugin in the base environment
26-
- plotly=6.*
28+
# see above
29+
# - plotly>=6.0.1
2730
- requests=2.32.3
2831
- statsmodels=0.14.4
2932
## supporting packages for notebooks ##

lecture_0.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@
811811
" "
812812
],
813813
"text/plain": [
814-
"<IPython.lib.display.IFrame at 0x1031c7f10>"
814+
"<IPython.lib.display.IFrame at 0x1044a5350>"
815815
]
816816
},
817817
"execution_count": 1,

lecture_1.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
"name": "stderr",
324324
"output_type": "stream",
325325
"text": [
326-
"/var/folders/kr/nx0m1j811kz5vy8c87ffchzr0000gn/T/ipykernel_94940/4056869583.py:1: DtypeWarning: Columns (8,20,31,34) have mixed types. Specify dtype option on import or set low_memory=False.\n",
326+
"/var/folders/kr/nx0m1j811kz5vy8c87ffchzr0000gn/T/ipykernel_96131/4056869583.py:1: DtypeWarning: Columns (8,20,31,34) have mixed types. Specify dtype option on import or set low_memory=False.\n",
327327
" requests = pd.read_csv(\n"
328328
]
329329
}

lecture_1_exercise.ipynb

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"name": "stdout",
2929
"output_type": "stream",
3030
"text": [
31-
"2025-02-24 23:27:49 URL:https://data.cityofnewyork.us/resource/m6nq-qud6.csv [136065] -> \"2021_yellow_taxi_trips.csv\" [1]\r\n"
31+
"2025-03-17 00:00:28 URL:https://data.cityofnewyork.us/resource/m6nq-qud6.csv [136065] -> \"2021_yellow_taxi_trips.csv\" [1]\r\n"
3232
]
3333
}
3434
],
@@ -52,33 +52,35 @@
5252
"name": "stdout",
5353
"output_type": "stream",
5454
"text": [
55-
"2021_yellow_taxi_trips.csv lecture_1.slides.html\r\n",
56-
"LICENSE.md lecture_1_exercise.ipynb\r\n",
57-
"Makefile lecture_1_exercise_solution.ipynb\r\n",
58-
"\u001b[1m\u001b[36m__pycache__\u001b[m\u001b[m lecture_2.ipynb\r\n",
59-
"\u001b[1m\u001b[36m_build\u001b[m\u001b[m lecture_2.slides.html\r\n",
60-
"_config.yml lecture_2_exercise.ipynb\r\n",
61-
"\u001b[1m\u001b[36m_static\u001b[m\u001b[m lecture_2_exercise_2_solution.ipynb\r\n",
62-
"_toc.yml lecture_3.ipynb\r\n",
63-
"\u001b[1m\u001b[36massignments\u001b[m\u001b[m lecture_3.slides.html\r\n",
64-
"assignments.md lecture_3_exercise_solution.ipynb\r\n",
65-
"conf.py lecture_4.ipynb\r\n",
66-
"curve.ipynb lecture_4.slides.html\r\n",
67-
"\u001b[35mdata\u001b[m\u001b[m lecture_5.ipynb\r\n",
68-
"\u001b[1m\u001b[36mextras\u001b[m\u001b[m lecture_5.slides.html\r\n",
69-
"\u001b[1m\u001b[36mfinal_project\u001b[m\u001b[m lecture_5_exercise_solution.ipynb\r\n",
70-
"final_project.md lecture_6.ipynb\r\n",
71-
"home.md lecture_6.slides.html\r\n",
72-
"hw_0.ipynb lectures.md\r\n",
73-
"hw_1.md \u001b[1m\u001b[36mmeta\u001b[m\u001b[m\r\n",
74-
"hw_2.ipynb meta.md\r\n",
75-
"hw_3.ipynb nbdime_config.json\r\n",
76-
"hw_4.ipynb pyproject.toml\r\n",
77-
"index.md registration.md\r\n",
78-
"joining_late.md resources.md\r\n",
79-
"lecture_0.ipynb \u001b[35msolutions\u001b[m\u001b[m\r\n",
80-
"lecture_0.slides.html syllabus.md\r\n",
81-
"lecture_1.ipynb \u001b[1m\u001b[36mtmp\u001b[m\u001b[m\r\n"
55+
"2021_yellow_taxi_trips.csv lecture_1_exercise.ipynb\r\n",
56+
"LICENSE.md lecture_1_exercise_solution.ipynb\r\n",
57+
"Makefile lecture_2.ipynb\r\n",
58+
"\u001b[1m\u001b[36m__pycache__\u001b[m\u001b[m lecture_2.slides.html\r\n",
59+
"\u001b[1m\u001b[36m_build\u001b[m\u001b[m lecture_2_exercise.ipynb\r\n",
60+
"_config.yml lecture_2_exercise_2_solution.ipynb\r\n",
61+
"\u001b[1m\u001b[36m_static\u001b[m\u001b[m lecture_3.ipynb\r\n",
62+
"_toc.yml lecture_3.slides.html\r\n",
63+
"\u001b[1m\u001b[36massignments\u001b[m\u001b[m lecture_3_exercise_solution.ipynb\r\n",
64+
"assignments.md lecture_4.ipynb\r\n",
65+
"attendance.csv lecture_4.slides.html\r\n",
66+
"conf.py lecture_5.ipynb\r\n",
67+
"curve.ipynb lecture_5.slides.html\r\n",
68+
"\u001b[35mdata\u001b[m\u001b[m lecture_5_exercise_solution.ipynb\r\n",
69+
"\u001b[1m\u001b[36mextras\u001b[m\u001b[m lecture_6.ipynb\r\n",
70+
"\u001b[1m\u001b[36mfinal_project\u001b[m\u001b[m lecture_6.slides.html\r\n",
71+
"final_project.md lectures.md\r\n",
72+
"home.md \u001b[1m\u001b[36mmeta\u001b[m\u001b[m\r\n",
73+
"hw_0.ipynb meta.md\r\n",
74+
"hw_1.md nbdime_config.json\r\n",
75+
"hw_2.ipynb pyproject.toml\r\n",
76+
"hw_3.ipynb registration.md\r\n",
77+
"hw_4.ipynb resources.md\r\n",
78+
"index.md \u001b[1m\u001b[36mresults\u001b[m\u001b[m\r\n",
79+
"joining_late.md simple.html\r\n",
80+
"lecture_0.ipynb simple.ipynb\r\n",
81+
"lecture_0.slides.html \u001b[35msolutions\u001b[m\u001b[m\r\n",
82+
"lecture_1.ipynb syllabus.md\r\n",
83+
"lecture_1.slides.html \u001b[1m\u001b[36mtmp\u001b[m\u001b[m\r\n"
8284
]
8385
}
8486
],

lecture_1_exercise_solution.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "stdout",
3636
"output_type": "stream",
3737
"text": [
38-
"2025-02-24 23:27:52 URL:https://data.cityofnewyork.us/resource/m6nq-qud6.csv [136065] -> \"2021_yellow_taxi_trips.csv\" [1]\r\n"
38+
"2025-03-17 00:00:31 URL:https://data.cityofnewyork.us/resource/m6nq-qud6.csv [136065] -> \"2021_yellow_taxi_trips.csv\" [1]\r\n"
3939
]
4040
}
4141
],

lecture_2.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@
547547
"name": "stderr",
548548
"output_type": "stream",
549549
"text": [
550-
"/var/folders/kr/nx0m1j811kz5vy8c87ffchzr0000gn/T/ipykernel_95204/610958175.py:2: DtypeWarning: Columns (8,20,31,34) have mixed types. Specify dtype option on import or set low_memory=False.\n",
550+
"/var/folders/kr/nx0m1j811kz5vy8c87ffchzr0000gn/T/ipykernel_96620/610958175.py:2: DtypeWarning: Columns (8,20,31,34) have mixed types. Specify dtype option on import or set low_memory=False.\n",
551551
" requests = pd.read_csv(url)\n"
552552
]
553553
}
@@ -1304,7 +1304,7 @@
13041304
"name": "stderr",
13051305
"output_type": "stream",
13061306
"text": [
1307-
"/var/folders/kr/nx0m1j811kz5vy8c87ffchzr0000gn/T/ipykernel_95204/1354368569.py:1: DtypeWarning: Columns (20,31,34) have mixed types. Specify dtype option on import or set low_memory=False.\n",
1307+
"/var/folders/kr/nx0m1j811kz5vy8c87ffchzr0000gn/T/ipykernel_96620/1354368569.py:1: DtypeWarning: Columns (20,31,34) have mixed types. Specify dtype option on import or set low_memory=False.\n",
13081308
" requests2 = pd.read_csv(url, dtype={\"Incident Zip\": \"string\"})\n"
13091309
]
13101310
}

lecture_3.ipynb

Lines changed: 491 additions & 484 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)