Created
June 15, 2015 19:23
-
-
Save cranmer/24f6b1f4074b65dd34f0 to your computer and use it in GitHub Desktop.
Embed custom.css into IPython for slides customization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.display import HTML | |
try: | |
myf = open('custom.css') | |
htmlstring = "<style>%s </style>" %(myf.read()) | |
HTML(htmlstring) | |
except IOError: | |
print "no file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stick this somewhere near the top of the notebook