jupyter lab 사용시 기본 세팅
jupyter 은 윈도우에서도 되나 저는 보통 Linux에서 사용하므로 리눅스 카테고리에 올린다. install은 단순히 pip 로 하면 되고 nginx를 두고 처리를 할때 처리할 부분만 기술한다. 구동은 다음 형태로 하면 된다. origin …
jupyter 은 윈도우에서도 되나 저는 보통 Linux에서 사용하므로 리눅스 카테고리에 올린다. install은 단순히 pip 로 하면 되고 nginx를 두고 처리를 할때 처리할 부분만 기술한다. 구동은 다음 형태로 하면 된다. origin …
configparser 를 통해 argument를 파싱하고 비슷한 것을 config.ini 에 넣어 두었다고 가정 이때 config.ini 를 먼저 읽어서 argument쪽에 넣고 argument를 다시 읽으면 되는데, 이때 문제가 parser가 초기화를 한다. 그래서 무식한 …
출처: http://code.activestate.com/recipes/531824-chat-server-client-using-selectselect/ # ./ChatClient.py “BabO” 127.0.0.1 3490 Connected to chat server@3490 [BabO@127.0.0.1]> Hello [BabO@127.0.0.1]> Hi [BabO@127.0.0.1]> #[CLIENT: pppp@127.0.0.1]>> Why?? [BabO@127.0.0.1]> ChatClient.py ChatServer.py communication.py
원문: http://www.linux-support.com/cms/forward-network-connections-with-python/ * config 설정법 port-forward.config 파일에 아래와 같은 형태로 사용. ——————————— 9025 berat.linux.rz.db.de 25 9021 berat.linux.rz.db.de 80 [내가Listen할포트] [서버주소] [서버포트] port-forward.py
#!/usr/bin/python import subprocess def getCallResult(cmdARGS): fd_popen = subprocess.Popen(cmdARGS.split(), stdout=subprocess.PIPE).stdout data = fd_popen.read().strip() fd_popen.close() return data data = getCallResult(“ls -la”) print (data) 결과) $ python test.py 합계 …
원글(이글루): 2010-11-30 15:03:27 def sortByKey(dict, bReverse): value_key_list = [] for key in dict.keys(): value_key_list.append (( key,dict[key] )) value_key_list.sort() if ( bReverse ): value_key_list.reverse() return value_key_list def sortByValue(dict, bReverse): value_key_list = …