博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
解决Altair 在juypter notebook 中安装后,图表不显示问题
阅读量:6238 次
发布时间:2019-06-22

本文共 1435 字,大约阅读时间需要 4 分钟。

hot3.png

官网:https://altair-viz.github.io/faq.html

The most common cause of a non-displaying plot in the Jupyter Notebook is incorrect configuration of the ipyvega jupyter extension, which is what recognizes an Altair object and automatically renders the plot with the Vega-Lite library.

If you install altair using conda, this nbextension setup step should be taken care of automatically. If you install altair using pip, there is an extra step to enable this extension; see the discussion at .

If this still is not addressing the problem, it may be due to having multiple incompatible versions of altair and vega on your system. Try updating both packages using, e.g. conda update altair vega or pip install altair vega --update.

If this still doesn’t work, please open an issue in the Altair’s , and we will do our best to help. In the meantime, other means of displaying Altair plots are listed in .

 

考虑安装命令:(保证以下三个命令都在Prompt黑框端有效安装) 

Altair can be installed via the Python Package Index with the following:

$ pip install altair$ pip install --upgrade notebook$ jupyter nbextension install --sys-prefix --py vega

The additional commands serve to set-up the  module to automatically render Altair plots within the Jupyter notebook (see ) Alternatively, you can install with , which handles the Jupyter notebook setup within the single install command:

$ conda install altair --channel conda-forge

转载于:https://my.oschina.net/u/1462678/blog/893429

你可能感兴趣的文章
mysql慢查询
查看>>
体会瞬间的舒爽
查看>>
我的友情链接
查看>>
关于网站访问出现的以下问题
查看>>
FFmpeg架构之其他重要数据结构的初始化
查看>>
List(二)
查看>>
Discuz论坛黑链清理教程
查看>>
committed access rate(CAR)承诺访问速率
查看>>
我的友情链接
查看>>
c#访问mysql数据库
查看>>
Postfix 邮件路由和传输研究
查看>>
Servlet学习小结
查看>>
“深入剖析WCF的可靠会话”系列[共8篇]
查看>>
装XP-呼唤可信的技术,呼唤可信的盘。
查看>>
中国***江湖之八大门派
查看>>
算法图解-动态规划
查看>>
Nginx 优化
查看>>
大家放弃XP,开始尝鲜吧……
查看>>
yii2 自动写入update_at,create_at字段
查看>>
PXE批量实现自动化安装系统
查看>>