transcranial / jupyter-themer

Apply custom CSS styling to your jupyter notebooks
MIT License
329 stars 53 forks source link

How do you use this? #2

Closed jonathanng closed 8 years ago

jonathanng commented 9 years ago

Love the idea.

It's not entirely clear how to use it.

I did something like this, but this had no effect.

from jupythemer import jupythemer

class Object(object):
    pass

args = Object()
args.layout     = 'wide'
args.color      = None
args.typography = None

jupythemer.run(args)
transcranial commented 9 years ago

Since it modifies the css, you have to refresh your browser for the changes to apply. Also, check out the usage section of the readme - if you still have an old existing ~/.ipython profile I think it may still try to automatically use that old profile.

Btw, I should write a convenience function wrapper for your code above. Would be nice to run it directly in the notebook as well. Thanks!