Code 3

[Remote-ssh] Invalid Character in hostname

Remote-ssh로 서버와 연결을 시도하는 도중 계속 "Invalid Character in hostname"이라는 에러가 발생하면서 정상적으로 연결되지 않고 계속해서 연결에 실패하는 경우가 발생했다. 구글링했더니 나와 유사한 문제가 2024년 초 부터(아마 업데이트 이후) 발생하고 있었음을 알 수 있었다. 요지는, ssh host를 설정할 때 작성하는 아래 예시와 같은 config파일에서 Host "HostName" HostName xxx.xxx.xxx.xxx User {Username} Port {portnum} Host의 이름으로 설정하는 "HostName" 이 부분에 공백이나 @와 같은 특수문자가 포함되면 안된다는 의미이다. 나는 기본적으로 설정하는 방식인 Username@HostName으로 지..

Code 2024.04.04

[bug] matplotlib, seaborn, pandas 등을 사용하면 python kernel/jupyter notboock kernel이 죽는 오류

https://stackoverflow.com/questions/69786885/after-conda-update-python-kernel-crashes-when-matplotlib-is-used After conda update, python kernel crashes when matplotlib is used I have create this simple env with conda: conda create -n test python=3.8.5 pandas scipy numpy matplotlib seaborn jupyterlab The following code in jupyter lab crashes the kernel : import matplotlib. stackoverflow.com freet..

Code 2023.11.27

[딥러닝 환경설정] CUDA & Conda & Pytorch 설치

Conda anaconda 설치 다음 링크는 Anaconda의 공식 링크이다. mac에서는 miniconda를 이용하는 것을 추천한다. https://www.anaconda.com/download 환경변수 설정 Q. 왜 필요한가요? "Anaconda Prompt"에서만이 아니라, 그냥 window의 기본 cmd나 powershell에서도 conda를 사용할 수 있게 하려면 환경변수를 등록해야한다.[^1] 내가 설치한 conda가 어디에 있는지 확인하려면 Anaconda Prompt에 다음을 입력해서 경로를 확인할 수 있다. conda env list Example 위 명령어를 사용하여 conda가 설치되어있는 위치[^2]를 알았다면, 사용자 변수 항목에서 Parh변수를 선택한 뒤, anaconda가 설치..

Code 2023.11.21