简体   繁体   English

如何使用 nbconvert 将交互式 Jupyter 笔记本转换为 html

[英]How to convert interactive Jupyter notebook with nbconvert to html

I tried converting my notebook to nbinteract but the altair charts are not rendering.我尝试将我的笔记本转换为 nbinteract,但 altair 图表未呈现。 I also tried using nbconvert, the chars are working but the widgets are not.我也尝试使用 nbconvert,字符正在工作,但小部件没有。

jupyter nbconvert --to html --template nbconvert_template_altair.tpl --execute  Analysis.ipynb

You can do this using an nbconvert template like the one shown here: https://github.com/altair-viz/altair/issues/329#issuecomment-473524751您可以使用如下所示的 nbconvert 模板执行此操作: https://github.com/altair-viz/altair/issues/329#issuecomment-473524751

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

相关问题 如何使用 nbconvert 从 Jupyter Notebook 到 HTML - How to use nbconvert from Jupyter Notebook to HTML jupyter nbconvert --to html_toc 不起作用(将带有目录的 jupyter notebook 转换为网站格式) - jupyter nbconvert --to html_toc not working (convert jupyter notebook with table of content to website format) 如何帮助 Python 找到 Jupyter 命令“jupyter-nbconvert”,将 Jupyter Notebook 导出为 HTML? - How do I help Python find Jupyter command 'jupyter-nbconvert', to export Jupyter Notebook to HTML? VScode 无法将 Jupyter 笔记本导出到 HTML - 未找到“jupyter-nbconvert” - VScode fails to export Jupyter notebook to HTML - 'jupyter-nbconvert` not found 将交互式Jupyter Notebook导出为html - Exporting Interactive Jupyter Notebook to html 将jupyter笔记本转换为pdf(彩色) - nbconvert jupyter notebook to pdf (with color) 使用 jupyter nbconvert 在不同的目录中运行 jupyter notebook - Run a jupyter notebook in a different directory with jupyter nbconvert jupyter nbconvert:转换为 markdown 和/或 html 不包括标记为“跳过”的幻灯片 - jupyter nbconvert: convert to markdown and/or html excluding slides marked as `skip` Jupyter (IPython) 笔记本:将 HTML 笔记本转换为 ipynb - Jupyter (IPython) notebook: Convert an HTML notebook to ipynb 如何在 Jupyter Notebook 和 Python 中创建交互式绘图 - How to create interactive plot in Jupyter Notebook and Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM