简体   繁体   中英

convert jupyter notebook saved as .HTML file back into .IPYNB

Can I convert a Jupyter Notebook saved as .HTML file back into .IPYNB file? The executable original notebooks were lost. The nbconvert docs don't have anything useful for this case. Currently I have to copy-paste bunch of cells into a new notebook, but this is very tedious and output cells will be lost this way.


[EDIT]

I found an interactive way to do this using BeautifulSoup:

IPython notebook: Convert an HTML notebook to ipynb

删除了答案尝试,因为 pandoc 只会导致笔记本输入和输出单元的降价表示作为单个笔记本单元。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM