Skip to content

Instantly share code, notes, and snippets.

@larsoner
Created August 5, 2019 19:12
Show Gist options
  • Save larsoner/0a2196060f0503e10291610195c5b354 to your computer and use it in GitHub Desktop.
Save larsoner/0a2196060f0503e10291610195c5b354 to your computer and use it in GitHub Desktop.
# From mne/doc directory:
# make clean; rm -f ~/Desktop/prof.prof && python -m cProfile -o ~/Desktop/prof.prof ~/Desktop/doc.py && snakeviz ~/Desktop/prof.prof # noqa
import os
import sys
os.environ['BUILD_DEV_HTML'] = '1'
os.chdir('/home/larsoner/python/mne-python/doc')
sys.argv = ['sphinx-build', '-D', 'plot_gallery=0', '-b', 'html', '-nWT',
'--keep-going', '-d', '_build/doctrees', '.', '_build/html']
from sphinx import __main__ # noqa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment