PyCharm Notebook: Widget javascript not detected

无人久伴 提交于 2020-01-04 04:26:30

问题


This python code in the PyCharm notebook viewer produces the error:

Widget Javascript not detected. It may not be installed properly. Did you enable the widgetsnbextension? If not, then run "jupyter nbextension enable --py --sys-prefix widgetsnbextension"

Code:

from ipywidgets import widgets
from IPython.display import display
text = widgets.Text()
display(text)

I did enable the extension with the suggested command from the error.

The code works from a web-based jupyter notebook session. I have made sure that the PyCharm project interpreter is set to the same python 3.4 environment that works for the web notebook session.

Any Ideas?


回答1:


PyCharm does not support these widgets. Here's a link to their page discussing this. https://youtrack.jetbrains.com/issue/PY-14534



来源:https://stackoverflow.com/questions/41106767/pycharm-notebook-widget-javascript-not-detected

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!