一、安装rise
在Anacanda的Prompt中执行以下命令
conda install -c damianavila82 rise
安装完成后重启Jupyter Notebook
二、在文件目录下cmd,然后输入下面代码
jupyter nbconvert notebook.ipynb --to slides --post serve
注意把文件名改成自己的文件名。
三、在操作过程中遇到的坑
1. conda无法联网出现CondaHttpError时,打开“.condarc“文件,把https改成http,你也可能会在channels:下面看到 ”- default“,请删除它.
2.打开Jupyter后python显示正忙,无法执行代码,出现ValueError: signal only works in main thread,重新安装:jupyter tornado
conda uninstall jupyter tornado
conda install jupyter tornado
3.ERROR conda.core.link:_execute_actions(337): An error occurred while installing package
conda install tqdm -f
出现什么就把tpdm换成什么。