Skip to content

Commit 4ce5233

Browse files
authored
Update ifp_advanced.md
1 parent 08c46c0 commit 4ce5233

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lectures/ifp_advanced.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ tags: [hide-output]
4242

4343
```{code-cell} ipython
4444
import matplotlib.pyplot as plt
45+
import matplotlib as mpl
46+
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
47+
mpl.font_manager.fontManager.addfont(FONTPATH)
48+
plt.rcParams['font.family'] = ['Source Han Serif SC']
49+
4550
import numpy as np
4651
from numba import jit, float64
4752
from numba.experimental import jitclass
@@ -598,4 +603,4 @@ plt.show()
598603
```
599604

600605
```{solution-end}
601-
```
606+
```

0 commit comments

Comments
 (0)