내용으로 건너뛰기
Out of the Box
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
Fold/unfold all
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
•
pytest
•
container
•
dokuwiki
ipython
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== IPython ====== ===== Autoreload ===== %load_ext autoreload %autoreload 2 ===== ipython notebook 기본 설정 ===== 변경을 원하는 profile의 ipython_notebook_config.py 수정(없으면 생성) 기본 프로파일(~/.ipython/profile_default/ipython_notebook_config.py) <code python ipython_notebook_config.py> c = get_config() # 외부에서 노트북 접속가능 c.NotebookApp.ip = '*' # 기본 figure size 설정 c.InlineBackend.rc = {'font.size': 10, 'figure.figsize': (10.0, 4.0), 'figure.facecolor': 'white', 'savefig.dpi': 72, 'figure.subplot.bottom': 0.125, 'figure.edgecolor': 'white'} </code> ===== IPython Interpreter Embed 하기 ===== <code python> from IPython import embed embed() </code> 예외가 발생하거나 사용자가 프로그램 실행 도중에 개입하고 싶을때 사용예 <code python> from IPython import embed import traceback ... while True: try: do_something() except KeyboardInterrupt: embed() except Exception as e: traceback.print_exc() embed() ... </code> ===== asyncio와 같이 사용 ===== <code python> %autoawait True </code>
ipython.txt
· 마지막으로 수정됨: 2024/03/23 02:38 저자
127.0.0.1
문서 도구
문서 보기
이전 판
역링크
Fold/unfold all
맨 위로