help icon indicating copy to clipboard operation
help copied to clipboard

notebook download as html lose the style( or css? I don't know how to describe it)

Open kite8 opened this issue 7 years ago • 2 comments

003 004

Navigated to file:///E:/test.html
test.html:14991 GET file:///E:/custom.css net::ERR_FILE_NOT_FOUND
jquery.min.js:4 GET file:///E:/fonts/roboto.ttf net::ERR_FILE_NOT_FOUND
(anonymous) @ jquery.min.js:4
swap @ jquery.min.js:4
(anonymous) @ jquery.min.js:4
l @ jquery.min.js:4
fireWith @ jquery.min.js:4
ready @ jquery.min.js:4
S @ jquery.min.js:4

I found the error , but I don't know how to fix it. few days ago, it's all right ,but today it has a problem suddenly

I use the jupyter nbconvert my_notebook.ipynb --to html --CSSHTMLHeaderPreprocessor.enabled=True but, it doesn't work, please help me, thanks.

kite8 avatar Nov 04 '18 10:11 kite8

Do you have a custom.css file for customizing your style? If so, you might want to copy it next to the exported notebook.

minrk avatar Nov 12 '18 12:11 minrk

@minrk ,thanks, I open the html that downloaded at 2 weeks ago, it displayed well at 2 weeks ago, but I open it today , it has same problem. I think it may be some other soft broken my custom.css, but I don't know where the custom.css file path under the browser. I use other browser has the same problem. I reinstall the jupyter notebook, but it doesn't work.

I copy the custom.css from the .jupyter folder, it doesn't work.

kite8 avatar Nov 12 '18 13:11 kite8