为什么我的散景图在github上不起作用? [英] Why my bokeh plots doesn't work on github?

查看:74
本文介绍了为什么我的散景图在github上不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在github上有一个私人仓库,正在尝试bokeh.我在本地的ipython笔记本中编辑文件,可以看到绘图正常工作.当我将它们推到github并尝试在线对其进行可视化时,我可以看到除图形​​之外的所有代码.

I have a private repo on github and I am experimenting with bokeh. I edit the file in my ipython notebook locally and I can see the plot working. When I push them on github and try to visualize it online I can see all the code except for the graph.

在nbviewer上,我可以看到其他使用bokeh的笔记本. github渲染引擎和nbviewer之间有什么区别吗?

On nbviewer I can see other notebooks using bokeh. Is there any difference between the github rendering engine and nbviewer?

推荐答案

我知道这很旧,但是如果将来有人碰到它...

I know this is old, but if someone comes across it in the future...

有两种可能性:

  1. GitHub不支持使用Javascript,自定义CSS等的动态输出.

http://blog.jupyter.org/2015 /05/07/rendering-notebooks-on-github/

第二,由于安全问题,nbviewer上的某些功能将在GitHub上不可用.例如,GitHub不会渲染任何使用JavaScript,自定义CSS和Markdown或输出中嵌入的大多数自定义HTML的动态输出显示.在这种情况下,并且GitHub无法完全渲染您的笔记本,您将看到一个图标,可让您在nbviewer上查看完整的笔记本.

Second, because of security concerns, some features available on nbviewer will not be available on GitHub. For example, GitHub will not render any dynamic output display that uses JavaScript, custom CSS, and most custom HTML embedded in Markdown or in outputs. When this is the case, and GitHub cannot fully render your notebooks, you will see an icon that allows you to view the full notebook on nbviewer.

  1. 在本地查看笔记本时,它可能已链接到Ipython内核,因此使用Python来显示图形.在GitHub上查看时,没有Ipython内核,因此无法生成图形.在静态笔记本中只能看到简单的静态图形(例如matplotlib图形).

这篇关于为什么我的散景图在github上不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆