reveal.js 的全息视图(散景)
Holoviews (Bokeh) with reveal.js
我有一个带有 Holoviews (Bokeh) 交互图的演示文稿。该演示文稿在 rise(笔记本内)上运行良好,但是当我在本地将其转换为带有 reveal.js (v3.6.0) 的幻灯片时,输出没有显示。即使 post 通过 CDN 提供服务也无法解决问题。有人遇到过这个吗?
我提出了一个issue on the RISE site about this problem once I was able to reproduce it, and the RISE author pointed me to this issue on the Bokeh site that let me get it working in my case. The solution is simply not to tell RISE to skip the cell that contains hv.extension("bokeh")
. That cell loads BokehJS, which is needed for any Bokeh-based plots to show up, and skipping it works fine for a live presentation but apparently not for any exported version. After telling RISE not to skip that cell, my example notebook now works fine when converted to .html using jupyter nbconvert --to slides Bednar_INDEX_2018.ipynb
, and it can be converted to PDF as described in the RISE documentation。 PDF 输出格式不完美,但至少所有绘图都显示出来了。
我有一个带有 Holoviews (Bokeh) 交互图的演示文稿。该演示文稿在 rise(笔记本内)上运行良好,但是当我在本地将其转换为带有 reveal.js (v3.6.0) 的幻灯片时,输出没有显示。即使 post 通过 CDN 提供服务也无法解决问题。有人遇到过这个吗?
我提出了一个issue on the RISE site about this problem once I was able to reproduce it, and the RISE author pointed me to this issue on the Bokeh site that let me get it working in my case. The solution is simply not to tell RISE to skip the cell that contains hv.extension("bokeh")
. That cell loads BokehJS, which is needed for any Bokeh-based plots to show up, and skipping it works fine for a live presentation but apparently not for any exported version. After telling RISE not to skip that cell, my example notebook now works fine when converted to .html using jupyter nbconvert --to slides Bednar_INDEX_2018.ipynb
, and it can be converted to PDF as described in the RISE documentation。 PDF 输出格式不完美,但至少所有绘图都显示出来了。