简体   繁体   English

在Jupyter笔记本中使用R绘制数据时的MIME类型警告

[英]MIME type warning when plotting data with R in a Jupyter notebook

I can't figure this one out. 我不知道这一点。 Every time I plot data with R (IRKernel) into a Jupyter notebook I get a warning message that says "No renderer could be found for output. It has the following MIME types:" I'm using Chrome to display my notebooks using Jupyter Lab. 每次我用R(IRKernel)将数据绘制到Jupyter笔记本中时,都会收到一条警告消息,指出“找不到用于输出的渲染器。它具有以下MIME类型:”我正在使用Chrome通过Jupyter Lab显示笔记本。

Thing is, the plots are perfectly displayed, so I don't quite understand why I'm getting this message. 问题是,这些图可以完美显示,所以我不太明白为什么收到此消息。 I tried changing the MIME type to png and svg+xml in the corresponding cells, but I keep getting the warning we both. 我尝试在相应的单元格中将MIME类型更改为png和svg + xml,但是我一直收到警告,我们俩都这样做。

Any ideas? 有任何想法吗? Thanks! 谢谢!

The topic is actively being discussed on the IRkernel issue page . IRkernel问题页面上正在积极讨论该主题。 For me, adding a print() function around the ggplot command made the message disappear, but that is not much of a solution to the underlying problem! 对我来说,在ggplot命令周围添加print()函数会使消息消失,但这并不是解决潜在问题的好方法!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM