PyCharm Notebook: JavaScript not detected

This python code in the PyCharm laptop viewer causes an error:

Javascript widget not found. It may not be installed correctly. Have you enabled widgetsnbextension? If not, then run "jupyter nbextension enable --py --sys-prefix widgetsnbextension"

the code:

from ipywidgets import widgets
from IPython.display import display
text = widgets.Text()
display(text)

I turned on the extension using the suggested command from the error.

This code runs on the jupyter notebook web platform. I made sure that the PyCharm project interpreter is installed in the same python 3.4 environment that works for a web laptop session.

Any ideas?

+2
source share

Source: https://habr.com/ru/post/1676302/


All Articles