<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>There should be a discussion on IPython user about that from a few weeks ago. </div><div><br></div><div>We are thinking on metadata in notebook level that nbviewer could look at that allow to select a theme on nbviewer.</div><div><br></div><div>IPEP and code to do so have to be written.<br><br>Envoyé de mon iPhone</div><div><br>Le 20 févr. 2014 à 04:58, Aron Ahmadia <<a href="mailto:aron@ahmadia.net">aron@ahmadia.net</a>> a écrit :<br><br></div><blockquote type="cite"><div><div dir="ltr">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.<div><br></div><div>I've seen this bit of code in the wild[1]:</div>
<div><br></div><div><div>from IPython.core.display import HTML</div><div>def css_styling():</div><div> styles = open("../styles/custom.css", "r").read()</div><div> return HTML(styles)</div><div>css_styling()</div>
</div><div><br></div><div>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?</div>
<div><br></div><div>-A</div><div><br></div><div>[1] <a href="http://nbviewer.ipython.org/github/barbagroup/AeroPython/blob/master/lessons/00_Lesson00_QuickPythonIntro.ipynb">http://nbviewer.ipython.org/github/barbagroup/AeroPython/blob/master/lessons/00_Lesson00_QuickPythonIntro.ipynb</a><br>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>IPython-dev mailing list</span><br><span><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a></span><br><span><a href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a></span><br></div></blockquote></body></html>