问题描述
我在进行jupyter笔记本转换时遇到问题.在jupyter笔记本上看起来不错.但是,如果我将其转换为html或上载至github,则其显示如上图所示.而不是垂直(上下滚动),我必须向左和向右滚动,并且每个单元格实际上都变窄了.有什么建议吗?
I have issues on jupyter notebook conversion. It looks fine on jupyter notebook. However if I convert it to html or upload to github, it displays like photo above.Instead of vertical(scroll up and down), I have to scroll left and right and each cell are really narrowed.Any suggestion?
提前谢谢!
推荐答案
这是您使用的典型的发出无效HTML的库.我建议打开一个问题或联系Jupyter邮件列表来帮助您调试此问题,因为StackOverflow并不是来回进行的正确位置.
This is typical of a library you use emitting invalid HTML. I would suggest opening an issue or contacting the Jupyter mailing list to help you debug this as StackOverflow will not be the right place to have a back and forth.
您应该能够通过以下方式缩小哪个库的工作范围: -备份您的笔记本. -删除一个单元格,直到笔记本看起来正常. (提示在本地使用nbconvert而不是上载,并使用python -m http.server
) -您删除的最后一个单元有问题.
You should be able to narrow down which library does that by: - backup your notebook. - Delete cells one and until notebook looks normal. (tip use nbconvert locally instead of uploading, and use python -m http.server
) - the last cell you delete have a issue.
这可能是nbconvert中的错误,但我对此表示怀疑.
It may be a bug in nbconvert but I doubt it.
这篇关于jupyter笔记本显示单元格水平的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!