3

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?

2
  • It appears that only the web-based notebook can use ipywidgets since javascript is involved. Am I right? Are there any desktop based notebooks that can use ipywidgets? Commented Dec 19, 2016 at 11:35
  • That will take long time for pycharm I think to have this as a priority, If I were you, use JupyterLab Commented Apr 24, 2018 at 10:15

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.