Skip to content

Commit 071aff4

Browse files
AllenDowneyclaude
andcommitted
Chapter 11: install empiricaldist if needed, as in other chapters
Add the try/except cell that installs empiricaldist on Colab, as in chapters 4, 8 and 9, and regenerate the student copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent b1c2ba1 commit 071aff4

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

‎notebooks/chap11.ipynb‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,18 @@
499499
"`plot_fitnesses` plots the CDF of fitness across the population."
500500
]
501501
},
502+
{
503+
"cell_type": "code",
504+
"execution_count": 1,
505+
"metadata": {},
506+
"outputs": [],
507+
"source": [
508+
"try:\n",
509+
" import empiricaldist\n",
510+
"except ImportError:\n",
511+
" !pip install empiricaldist"
512+
]
513+
},
502514
{
503515
"cell_type": "code",
504516
"execution_count": 74,

‎soln/chap11.ipynb‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,18 @@
611611
"`plot_fitnesses` plots the CDF of fitness across the population."
612612
]
613613
},
614+
{
615+
"cell_type": "code",
616+
"execution_count": 1,
617+
"metadata": {},
618+
"outputs": [],
619+
"source": [
620+
"try:\n",
621+
" import empiricaldist\n",
622+
"except ImportError:\n",
623+
" !pip install empiricaldist"
624+
]
625+
},
614626
{
615627
"cell_type": "code",
616628
"execution_count": 74,

0 commit comments

Comments
 (0)