Skip to content

Instantly share code, notes, and snippets.

@cranmer
Created June 15, 2015 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cranmer/24f6b1f4074b65dd34f0 to your computer and use it in GitHub Desktop.
Save cranmer/24f6b1f4074b65dd34f0 to your computer and use it in GitHub Desktop.
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