jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

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

Open kite8 opened 5 years ago

kite8 commented 5 years ago

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.

minrk commented 5 years ago

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

kite8 commented 5 years ago

@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.