This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following has been adopted from https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ | |
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import seaborn as sns | |
import pandas as pd | |
def make_lower_pairplot(tmp, plot_unit_line=True, corrs_method = 'spearman'): | |
try: | |
g = sns.pairplot(tmp) | |
except FloatingPointError as e: | |
warnings.warn(e.args) | |
return tmp | |
g.map_upper(lambda x, y, **kwargs: pl.gca().set_visible(False)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rpy2.robjects import pandas2ri, r | |
import rpy2.robjects.packages as rpackages | |
from rpy2.robjects.vectors import StrVector | |
from rpy2.rinterface import RRuntimeError | |
utils = rpackages.importr('utils') | |
utils.chooseCRANmirror(ind=1); | |
packnames = ['bpcp'] | |
names_to_install = [x for x in packnames if not rpackages.isinstalled(x)] | |
if len(names_to_install) > 0: |