Skip to content

Instantly share code, notes, and snippets.

@hoogenm
Last active February 5, 2017 16:19
Show Gist options
  • Save hoogenm/27002754267110fe8e1ed77461e808ae to your computer and use it in GitHub Desktop.
Save hoogenm/27002754267110fe8e1ed77461e808ae to your computer and use it in GitHub Desktop.
Set livereveal theme in Jupyter
# Run from an Jupyter IPython 3 Notebook cell (recent Jupyter version)
from IPython.paths import locate_profile
profile_path = locate_profile(get_ipython().profile)
from notebook.services.config import ConfigManager
cm = ConfigManager(profile_dir=profile_path)
cm.update('livereveal', {
'theme': 'solarized',
'transition': 'linear',
'start_slideshow_at': 'selected',
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment