Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Embed custom.css into IPython for slides customization
from IPython.display import HTML
try:
myf = open('custom.css')
htmlstring = "<style>%s </style>" %(myf.read())
HTML(htmlstring)
except IOError:
print "no file"
@cranmer
Copy link
Author

cranmer commented Jun 15, 2015

Stick this somewhere near the top of the notebook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment