小编Jee*_*ddy的帖子

Jupyter R Notebook中的HTML小部件

我在使用R时无法在Jupyter笔记本中显示HTML小部件(使用python时工作).例如,在Jupyter R笔记本中没有任何绘图图表.这有什么解决方案吗?

library(plotly)
set.seed(100)
d <- diamonds[sample(nrow(diamonds), 1000), ]
plot_ly(d, x = carat, y = price, text = paste("Clarity: ", clarity),
        mode = "markers", color = carat, size = carat)
Run Code Online (Sandbox Code Playgroud)

代码执行但不显示图表

r widget plotly jupyter

7
推荐指数
1
解决办法
2593
查看次数

标签 统计

jupyter ×1

plotly ×1

r ×1

widget ×1