분류 전체보기
Pycharm ssh Interpreter (Windows Server) - "Bad Message"
Pycharm ssh Interpreter (Windows Server) - "Bad Message"
2021.02.17오래 고생했지만, SSH Interpreter 서버가 윈도우인 경우는 지원하지 않는다.
Build OpenCV 4.5.1 with CUDA (GPU) Support on Windows 10 (Python 3.8)
Build OpenCV 4.5.1 with CUDA (GPU) Support on Windows 10 (Python 3.8)
2021.02.151. Anaconda 설치 : 기본적인 패키지들을 포함한 개발환경을 구축하기 위해 아나콘다를 설치 Anaconda3 설치 (Windows) 1. Anaconda 다운로드 https://www.anaconda.com/download/ Anaconda | Individual Edition Anaconda's open-source Individual Edition is the easiest way to perform Python/R data science and machine learni.. yunwoong.tistory.com 2. 가상환경 구성 : 해당 가이드에서는 Python 3.8으로 환경구성을 권장 (OpenCV, cuda, cuDNN 버전을 고려하여 Python 3.8로 환경을 구성할 것을 권장함)..
Python을 활용한 마스크 자동 구매 프로그램
Python을 활용한 마스크 자동 구매 프로그램
2021.01.31코로나 19 로 인해 마스크 품귀 현상이 지속되면서 마스크 구매 경쟁이 치열해졌습니다. 공적 마스크를 배분하는 마스크 5부제까지 시행됐지만, 여전히 마스크 구하기는 어려워서 마스크 구매가 가능한 시점에 알림을 주거나 자동으로 구매하는 프로그램을 만들었습니다. 추진배경 공급의 부족으로 마스크 가격은 계속 치솟고 기존 가격을 유지하는 착한 마스크라 불리는 마스크는 오전 9시에 쉴 새 없이 새로고침을 누르며 클릭을 하여도 활성화된 [구매하기] 버튼조차 구경하기 어렵습니다. 공대생들은 실시간으로 주문한 마스크를 할머니는 5시간씩 줄을 서도 하루 5장을 구매하지 못했다는 기사가 나오기도 했습니다. 추진내용 처음에는 마스크를 게릴라로 판매하는 사이트를 크롤링하여 재고 존재 시 문자로 알람을 보내주는 방식으로 개발하..
[ PyQt ] Button Widget
[ PyQt ] Button Widget
2021.01.311. QPushButton def __init__(self): QWidget.__init__(self, flags=Qt.Widget) self.btn_push = QPushButton() self.edt_number = QLineEdit() self.layout = QBoxLayout(QBoxLayout.TopToBottom, self) self.setLayout(self.layout) self.init_widget() 1) Signals clicked(bool) pressed released toggled(bool) def init_widget(self): self.setWindowTitle("QPushButton Shortcut") self.click_cnt = 0 self.edt_number.set..
[ 오류 해결 ] (Python) Remainder of file ignored
[ 오류 해결 ] (Python) Remainder of file ignored
2021.01.30matplotlib 에서 아래와 같이 'Remainder of file ignored' 오류 발생 시 numpy를 삭제 후 재설치 함 pip uninstall numpy pip install numpy
[ PyQt ] Signal & Slot
[ PyQt ] Signal & Slot
2021.01.301. Signal & Slot 이란? Signal 과 Slot은 객체 간 통신에 사용 Signal이 발생하면 Slot Function이 호출 (Ex. 버튼을 클릭하면 Text가 변경된다면 버튼을 클릭하는 이벤트가 Signal, Text가 변경되는 것이 Slot임) 2. Signal과 Slot의 연결 1) Qt에서 제공하는 Widget에는 각 Widget마다 다양한 Signal이 존재 clicked pressed released toggled … 2) Signal과 Slot은 connet라는 함수를 통해 연결 self.[widget_name].[signal].connect(slot) 3) 간단한 Signal은 Qt Designer 내에서 설정가능 4) Source
Python 패키지 설치
Python 패키지 설치
2021.01.291. 패키지 확인 설치된 패키지를 확인하기 위해서 둘 중 하나 입력 ## 설치된 패키지를 출력 pip list ## 설치된 패키지를 requirements 포맷으로 출력 pip freeze 2. pip upgrade 아래와 같이 pip upgrade 안내가 나왔다면 pip 버전을 업데이트 하기 위하여 아래 명령 수행 pip install –upgrade pip PIP 버전이 업데이트 되면서 목록을 확인하는 방법이 변경되었다는 메시지가 출력 기존형식은 –format=legacy,변경된 형식은 –format=columns을 인자로 전달 3. pip install 새로운 패키지를 설치하기 위해서는 ‘pip install [pakage]’을 이용 pip install requests 특정 버전의 패키지 설치 p..
Markdown (마크다운) 문법 총정리
Markdown (마크다운) 문법 총정리
2021.01.29Markdown 이란? Markdown은 텍스트 서식을 지정하는 데 사용되는 경량 마크업 언어입니다. 2004년 John Gruber와 Aaron Swartz가 읽기 쉽고 쓰기 쉬운 Web용 콘텐츠를 작성하는 간단한 방법을 제공한다는 목표로 만들었습니다. Markdown은 HTML로 쉽게 변환할 수 있는 간단한 일반 텍스트 구문을 사용하므로 웹사이트, 웹 애플리케이션용 콘텐츠를 만드는 데 널리 사용되며 Jupyter Notebook, Github등에서도 사용됩니다. 사용자는 HTML 또는 기타 마크업 언어에 대한 지식 없이도 일반 텍스트 문자를 사용하여 제목, 굵게 및 기울임꼴 텍스트, 목록, 링크 및 이미지와 같은 서식 요소를 추가할 수 있습니다. 더보기 Jupyter Notebook에서 Markdow..
Jupyter Notebook 추가기능
Jupyter Notebook 추가기능
2021.01.291. DocString의 표시 선언한 변수 뒤에 ?를 붙여서 셀을 실행하는 것으로 해당 변수의 상태를 확인 약간 다른 방법으로 변수를 타이핑한 후 Shift + Tab을 누르면 툴팁이 표시 툴팁에는 DocString의 일부 내용이 표시됨 2. 이미지 첨부하기 Drag & Drop으로 첨부 3. shell(명령 프롬프트)의 이용 명령창에서 쓰는 명령을 그대로 쓰되, 맨 앞에 !를 입력하여 사용 가능 !cd Documents 4. Jupyter에서 Python Script(.py) 실행 매직 명령어 %run을 이용하여 Python 파일 실행 %run -i 'script.py' 5. 매직 명령어 이용 맨 앞에 %를 붙이고 특정 명령을 수행할 수 있음 (Python 문법에는 포함되지 않은, Jupyter not..
Jupyter Notebook 단축키
Jupyter Notebook 단축키
2021.01.291. Command Mode (press Esc to enable) - 명령모드 ESC 를 눌러 커맨드 모드로 진입하여 ENTER 를 통해 cell 을 수정할 수 있습니다. 아래 커맨드는 커맨드 모드에서 동작 A 는 현재 cell 위에 새로운 cell 을 추가 B 는 현재 cell 밑에 새로운 cell 을 추가 D + D D를 연속해서 두번 누르면 현재 cell 을 삭제 M 은 Markdown 셀로 변환하며, Y 는 Code 셀로 변환하고 R 은 Raw Cell 로 변환 CTRL + B 화면을 더 크게 사용 (왼쪽 파일 탐색기가 사라짐) SHIFT + M 두 개의 셀을 한개의 셀로 Merge CTRL + SHIFT + – 현재 커서 위치를 기준으로 두 개의 셀로 구분 SHIFT+J or SHIFT + D..
Jupyter Notebook 기본 사용법
Jupyter Notebook 기본 사용법
2021.01.291. 새 파일 생성 오른쪽 상단에 [New] 버튼을 클릭하면 Python3, Text File, Folder, Terminal 등의 옵션 중 Python3 을 선택하여 Python3 코드를 입력 할 수 있는 창을 활성화함 [참고] Text File : .txt 파일이나 .py 파일 등을 만듬 (대화 형식으로 실행되지 않고, 터미널에서 실행시켜야함. 읽는 것은 IPython 창에서도 가능) Folder : 디렉토리를 생성할 때 사용 Terminal : Terminal을 하나 새로 활성화함. 윈도우나 맥 등의 명령창(cmd 또는 terminal)과 같음. 여기서 .py 파일을 실행시킬 수 있고, 파일의 목록을 보거나 삭제하는 등의 명령이 모두 가능 (Running 탭에서 중지시킬 수 있음) 생성하면 맨 위에..
Jupyter Notebook 설치 및 실행 (Windows 10)
Jupyter Notebook 설치 및 실행 (Windows 10)
2021.01.291. Jupyter Notebook 웹 브라우저에서 파이썬 코드를 작성하고 실행해 볼 수 있는 개발도구 웹브라우저상에서 코딩하고 결과물까지 한화면에 볼수있는 편집기 2. Jupyter Notebook 설치 Anacond 설치 시 자동 설치 Anaconda를 사용하지 않는 경우 pip 을 통해 Jupyter 패키지를 설치할 수도 있지만, Anaconda를 설치해서 사용할 것을 권장 pip명령어를 통한 설치 (my_python_env) pip install jupyter 3. Jupyter Notebook 실행 Anaconda가 설치된 경우 Anaconda 메뉴중 Jupyter Notebook을 선택하거나 Anaconda Navigator에서 Jupyter Notebook 메뉴를 선택하면 Jupyter를 실..