2017-11-20 3 views
0

나는 jupyter 노트북을 사용하고 있지만 jupyter 위젯은 나타나지 않습니다. 대신에 나는 folllowing 메시지가 나타납니다 :Jupyter 위젯이 노트북에 나타나지 않습니다.

Failed to display Jupyter Widget of type Button. 
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions. 
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets. 

을 내가 가지고 다음 버전 :

또한
pip install ipywidgets 
jupyter nbextension enable --py widgetsnbextension 

내 코드는 다음과 같습니다 :

widgetsnbextension (3.0.8) 
ipywidgets (7.0.5) 

내가이 명령을 사용하여 위젯을 설치
import ipywidgets as widgets 
from IPython.display import display 

button = widgets.Button(description='Hello') 
display(button) 

답변

0

나는 버전 및 코드 작업은 나를 형성합니다. 시작하기 전 jupyter notebook. 마십시오 당신은? 실행

jupyter nbextension enable --py widgetsnbextension --sys-prefix 

출력 ==>

Enabling notebook extension jupyter-js-widgets/extension... 
     - Validating: ok 

** http://ipywidgets.readthedocs.io/en/stable/user_install.html

이 핍과 설치 지침을 보여줍니다보십시오. 가상 환경을 사용할 때이 모드를 사용하도록 지정합니다. enter image description here

+0

OP에서 "--sys-prefix"섹션없이 같은 줄을 넣었습니다. 특정 매개 변수를 포함해야한다고 말하면 문제가 해결 될 것입니다. – Taegost

관련 문제