Chuck Carlson
Chuck Carlson

Reputation: 987

PyCharm Notebook: Widget javascript not detected

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?

Upvotes: 3

Views: 3936

Answers (1)

Chuck Carlson
Chuck Carlson

Reputation: 987

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

Upvotes: 3

Related Questions