Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 242
Chuck Carlson Avatar asked Dec 03 '25 16:12

Chuck Carlson


1 Answers

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

like image 76
Chuck Carlson Avatar answered Dec 06 '25 16:12

Chuck Carlson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!