PyCharm Notebook: Widget javascript not detected

2019-07-13 20:20发布

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条回答
淡お忘
2楼-- · 2019-07-13 20:44

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

查看更多
登录 后发表回答