1 2 3 4 5 6 7 8 9
#!/bin/bash # remove comment sed -i "s/#'sphinx\_gallery/'sphinx\_gallery/" source/conf.py # put comment again sed -i "s/'sphinx\_gallery/#'sphinx\_gallery/" source/conf.py