问题描述
PyCharm笔记本查看器中的以下python代码产生错误:
This python code in the PyCharm notebook viewer produces the error:
代码:
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.
该代码可在基于Web的jupyter笔记本会话中使用.我已确保将PyCharm项目解释器设置为适用于网络笔记本会话的python 3.4环境.
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.
有什么想法吗?
推荐答案
PyCharm不支持这些小部件.这是他们讨论该页面的链接. https://youtrack.jetbrains.com/issue/PY-14534
PyCharm does not support these widgets. Here's a link to their page discussing this. https://youtrack.jetbrains.com/issue/PY-14534
这篇关于PyCharm Notebook:未检测到小部件javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!