본문 바로가기

IT/Python

(3)
[jupyter] 커널 죽을때 jupyter 설정 The kernel for filename appears to have died. It will restart automatically jupyter에서 메모리 문제로 재시작하겠다는 문구가 뜨는걸로 보인다. The kernel for filename appears to have died. It will restart automatically. tensorflow를 사용하다가 메모리가 부족한 이유 등으로 jupyter 커널이 죽을때 조치법이다. https://min23th.tistory.com/11 [주피터노트북/jupyter notebook] 커널 죽는 문제 the kernel appears to have died. it will restart automatically 모델을 jupyter lab에서 돌리는데 어느 순간부터 위 그림같이 커널이 죽는 문제가 발생했다 커널이 죽는 이유는 주어진 메모리 할당량을 초과했기 때문이다. 보통의 경우..
[jupyter] mac m1 (실리콘) jupyter import error 2021년형 맥북 에어 M1을 사용하고 있다. python을 설치하고 jupyter 서버를 실행하는 순간 ImportError가 발생했다. 찾아보니 zmq라는 패키지가 제대로 설치되지 않은 것이 이유이다. (아래 cmd의 출력된 구문을 보면 zmq가 있다) 1. 에러메세지 # jfrost @ JAESEOui-MacBookAir in ~ [17:46:40] $ jupyter notebook ... ImportError: dlopen(/Users/jfrost/Library/Python/3.8/lib/python/site-packages/zmq/backend/cython/constants.cpython-38-darwin.so, 2): no suitable image found. Did find: /Users/..
[Web scraping] Python 셀레니움(selenium)으로 팝업창 닫기 Python selenium으로 팝업창 닫기 링크 https://minmong.tistory.com/339 파이썬 셀레니움 Python selenium 팝업창 닫기 셀레니움을 이용해서 웹브라우저 자동화를 만들때에 예상치 못합 팝업창이 떠서 내가 생각한 자동화 로직이 깨질때가 있습니다. 이럴 때는 팝업창을 감지해서 팝업창을 닫아줘야 합니다. 요즘 minmong.tistory.com