python相關問題彙總

1. jupyter notebook輸出所有的代碼表達式:

https://stackoverflow.com/questions/36786722/how-to-display-full-output-in-jupyter-not-only-last-result

<code>

from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"

</code>

2. jupyter notebook輸出HTML:

https://stackoverflow.com/questions/36901154/how-export-a-jupyter-notebook-to-html-from-the-command-line

<code>

jupyter nbconvert --execute --to html notebook.ipynb

</code>

 

3. jupyter notebook註釋多行:

ctrl + / (Mac, Linux)

https://blog.csdn.net/linkequa/article/details/84786065

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章