Skip to content

Instantly share code, notes, and snippets.

@technic
technic / custom.css
Created January 10, 2019 22:35 — forked from felixlaumon/custom.css
My iPython / Jupyter notebook custom styling
@import url('http://fonts.googleapis.com/css?family=Crimson+Text');
@import url('http://fonts.googleapis.com/css?family=Source+Code+Pro');
/* Change code font */
.CodeMirror pre {
font-family: 'Input Mono Narrow', 'Source Code Pro', Consolas, monocco, monospace;
}
div.input_area {
border-color: rgba(0,0,0,0.10);
@technic
technic / lighten_color.py
Created January 30, 2019 16:32 — forked from ihincks/lighten_color.py
Function to lighten any color in matplotlib
def lighten_color(color, amount=0.5):
"""
Lightens the given color by multiplying (1-luminosity) by the given amount.
Input can be matplotlib color string, hex string, or RGB tuple.
Examples:
>> lighten_color('g', 0.3)
>> lighten_color('#F034A3', 0.6)
>> lighten_color((.3,.55,.1), 0.5)
"""