[IPython-dev] Preferred way to customize CSS for something that will be displayed on nbviewer?
Wed Feb 19 21:58:30 CST 2014
Let's say I've developed a snazzy CSS file and I want it so that an
uploaded notebook being viewed on nbviewer uses my custom CSS.
I've seen this bit of code in the wild:
from IPython.core.display import HTML
styles = open("../styles/custom.css", "r").read()
But this seems a bit awkward, since I'm effectively just piping the CSS
file into the notebook's rendered HTML. Does nbviewer know to look
anywhere for CSS, or is this the best we have right now?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev