Skip to content

Commit

Permalink
Update jupyter_snippets.md
Browse files Browse the repository at this point in the history
  • Loading branch information
euisuk-chung authored Aug 25, 2024
1 parent 2cbed62 commit 56025a2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions snippets/jupyter_snippets.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
# Jupyter snippets
- `Jupyter` Korean Font install in Ubuntu Server
```bash
# 한글 폰트가 없을 때
! sudo apt-get install fonts-nanum*

import matplotlib
import subprocess

mpl_file = matplotlib.__file__
mpl_file_loc = '/'.join(mpl_file.split('/')[:-1]) + '/mpl-data/fonts/ttf/'
print(matplotlib.__file__)
print(mpl_file_loc)

# 폰트 복사
subprocess.run(['cp', '/usr/share/fonts/truetype/nanum/Nanum*', mpl_file_loc], shell=True)
```

- `Jupyter(lab) server` server initialize snippet
```bash
Expand Down

0 comments on commit 56025a2

Please sign in to comment.