未检测到小部件javascript

未检测到小部件javascript

本文介绍了PyCharm Notebook:未检测到小部件javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 22:11