Skip to content

Commit 627dd5b

Browse files
mmckyclaude
andcommitted
Add missing 'import matplotlib as mpl' for the i18n font config
The resync kept the CJK font-configuration block but dropped the mpl import it depends on - a NameError at execution that non-strict builds swallow. Found sweeping the wave for the pattern behind zh-cn#97's December fixes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 34bbd3b commit 627dd5b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lectures/likelihood_var.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ translation:
6767
import numpy as np
6868
import matplotlib.pyplot as plt
6969
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
70+
import matplotlib as mpl
7071
mpl.font_manager.fontManager.addfont(FONTPATH)
7172
plt.rcParams['font.family'] = ['Source Han Serif SC']
7273

0 commit comments

Comments
 (0)