设置幻灯片
设置幻灯片:
启动幻灯片服务:
jupyter nbconvert notebook.ipynb –to slides –post serve
利用IFrame来加载网页
开启跨域请求设置:
jupyter notebook –generate-config
在用户目录下找到.jupyter/jupyter_notebook_config.py
c.NotebookApp.tornado_settings = {
'headers': {
'Content-Security-Policy': "frame-ancestors self *; report-uri /api/security/csp-report"
}
}