對不起,我希望這不是太寬泛的一個問題。我也將此通知給了bokeh
gitter,但沒有人回覆。python nbconvert不會將圖像導出爲散景圖
所以我有一個jupyter筆記本(筆記本版本4.3.1),我使用散景12.5來生成情節。我試圖用nbconvert,
將筆記本導出爲pdf,但出於某種原因,我只能獲取筆記本文本,而沒有任何圖像。
我試圖使用nbconvert 5.1.1進行導出,但後來發現有人無法將plot使用nbconvert 5.1.1和bokeh導出到reveal.js演示文稿。問題是https://github.com/bokeh/bokeh/issues/4859。
所以我下調到nbconvert 4.2,仍然沒有運氣。
從筆記本電腦,我使用的代碼:
!jupyter nbconvert --to pdf notebook.ipynb --output $notebook.pdf
的消息表明出口正在工作。但是當我打開pdf文件時,沒有pdf文件。
[NbConvertApp] Converting noteboo.ipynb to pdf
[NbConvertApp] Writing 350653 bytes to notebook.tex
[NbConvertApp] Building PDF
[NbConvertApp] Running pdflatex 3 times: ['pdflatex', 'notebook.tex']
[NbConvertApp] Running bibtex 1 time: ['bibtex', 'notebook']
[NbConvertApp] WARNING | bibtex had problems, most likely because
there were no citations
[NbConvertApp] PDF successfully created
[NbConvertApp] Writing 208111 bytes to notebook.pdf
有沒有人遇到過這個問題?我在筆記本上看到了沒有問題的情節,但由於某種原因,無論我嘗試什麼,都無法將其導出。