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?
PyCharm does not support these widgets. Here's a link to their page discussing this. https://youtrack.jetbrains.com/issue/PY-14534