RoBoLoG

[Python] Jupyter 에서 Input() 입력함수 사용하기 본문

Study/Python

[Python] Jupyter 에서 Input() 입력함수 사용하기

SKJun 2023. 2. 3. 09:30

Jupyter에서 그냥 input()을 사용하면 입력창이 뜨지 않으며 프로그램이 무한 while에서 빠져나오지 못함 ㅠㅠ

 

해결방법

1. ipywidgets 설치

!pip install ipywidgets

 

2. jupyter extension 설정 (Visual Studio 에서도 작동함)

!jupyter nbextension enable --py widgetsnbextension

 

Visual Studio의 경우 입력칸이 화면 상단에 뜸

 

 

728x90
반응형