!jupyter nbconvert --to PDF "GoogleColabPlus_Imagine_USPresidentWalkingImage_20210819.ipynb"
( 実行結果 )
[NbConvertApp] Converting notebook GoogleColabPlus_Imagine_USPresidentWalkingImage_20210819.ipynb to PDF
[NbConvertApp] Writing 305300 bytes to ./notebook.tex
[NbConvertApp] Building PDF
[NbConvertApp] Running xelatex 3 times: [u'xelatex', u'./notebook.tex', '-quiet']
[NbConvertApp] Running bibtex 1 time: [u'bibtex', u'./notebook']
[NbConvertApp] WARNING | bibtex had problems, most likely because there were no citations
[NbConvertApp] PDF successfully created
[NbConvertApp] Writing 88464 bytes to GoogleColabPlus_Imagine_USPresidentWalkingImage_20210819.pdf
参考にしたサイト
Google Colaboratory (または Google Colab, Colab+)を立ち上げる
Google Driveをマウントする
ipynbをPDFに変換するツールを入れる
今回保存したのは、GoogleColabPlus_Imagine_USPresidentWalkingImage_20210819.ipynbというipynbファイル。
GoogleColabPlus_Imagine_USPresidentWalkingImage_20210819.ipynbを引数に渡して、jupyter nbconvert --to PDFを、Google Colab+上で実行。
( 実行結果 )
( 実行結果 )
Google Drive側でもPDFファイルの存在を確認できる