I recently reinstalled Jupyter on my desktop PC, and HTML exports created from Jupyter Notebook files now appear quite different from the way they used to be rendered. There are a number of minor changes, but the biggest one is that the width of code cells used to be about 50% the width of the screen, and they now span almost the entire window. I greatly preferred the old style, since they rendered HTML output more closely resembled the original Jupyter Notebook.
You can see examples of what I mean here:
To be clear, I am creating these files using File > Download As > HTML.
Things are still rendered in the old way on my laptop, so I suspect that the issue is related to a new version of some library. But before I started installing old versions of packages at random, I wanted to see if anyone had a solution. Perhaps there is some sort of config file controlling the CSS for the rendered HTML that I can copy from my laptop to my desktop?
In case this is helpful:
- My desktop is running v 6.0.7 of
nbconvert
and v 6.1.4 of notebook
.
- My laptop is running v 5.6.1 of
nbconvert
and v 6.0.3 of notebook
.
Thanks in advance!
question from:
https://stackoverflow.com/questions/65833030/controlling-format-of-jupyter-notebook-html-export 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…