Trouble Shooting
-
[Tistory] 코드블럭 디자인 다크 모드로 바꾸기 Code-block dark mode pluginTrouble Shooting 2020. 2. 29. 00:16
티스토리 기본 코드블럭이 맘에 안들어서 바꾸고 싶은 찰나에 너무 간단한 방법을 찾아내서 바꿔본다. - Before import numpy as np print("Hello dokylee") - After 기본모드 말고 html 모드로 들어가서 아래와 같이 써주기만 하면 여기에 쓰고 싶은 코드 넣기 import numpy as np print("Hello dokylee") 끝! reference: https://hi098123.tistory.com/14
-
[Python˙Matplotlib˙Pyplot] imread("경로")에서 뭔 경로를 써야 할지 모르겠을 때Trouble Shooting 2020. 2. 28. 21:32
import matplotlib.pyplot as plt from matplotlib.image import imread img = imread('data/img/ggobuk.jpeg') plt.imshow(img) plt.show() * imread에 쓴 파일 디렉토리 구조 EWHA_NLP (folder) ㄴ 1.6 Matplotlib.ipynb (file) ≪현재 코딩 중인 파일 ㄴ data (folder) ㄴ img (folder) ㄴ ggobuk.jpeg (file) imread("경로")에 넣는 경로는 현재 1.6 Matplotlib.ipynb (file)에 코딩을 하고 있으니까, 코딩하고 있는 폴더가 현재 경로라고 생각하면 됨. 현재 경로에 대한 상대적인 경로를 imread안에 넣어주면 됨. ..