Display full outputs in Jupyter Notebook, not only the last command's output.
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
# Choose repo name from {'galaxy4-rhel6.repo', 'galaxy4-rhel7.repo', 'galaxy4-rhel8.repo'} based on your CentOS version. | |
sudo wget -P /etc/yum.repos.d/ http://galaxy4.net/repo/galaxy4-rhel7.repo | |
sudo yum repolist galaxy4-rhel7 | |
sudo yum install tmux |
Display full outputs in Jupyter Notebook, not only the last command's output.
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
import logging | |
import time | |
def getLogger(name, console_level='INFO', file_level=None): | |
""" | |
Generate logger with custom formatting. Console and file levels and formatting | |
if different. Log is saved to a file only if file_level is provided. | |
""" | |
## Create a custom logger | |
logger = logging.getLogger(name) |
### Project Specific ## | |
### VSCode ### | |
.vscode/ | |
### MAC OS ### | |
.DS_Store | |
.AppleDouble | |
.LSOverride |
If for some reason you thought it's a good idea to update tmux to a new version without closing your current tmux sessions first, you might see this error when trying to attach to those sessions after update:
$ tmux attach
protocol version mismatch (client 7, server 6)
To attach to your sessions, use this awesome hack (credit: this stackexchange answer):
#!/bin/bash | |
wget https://bootstrap.pypa.io/get-pip.py | |
python3 get-pip.py --user | |
python get-pip.py --user --force | |
rm get-pip.py | |
mkdir -p $HOME/.config/pip | |
ln -s $PWD/conf/pip.conf $HOME/.config/pip/ | |
pip3 install setuptools --upgrade --user |
# cat << EOF > /dev/null | |
# https://github.com/gpakosz/.tmux | |
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# /!\ do not edit this file | |
# instead, override settings in ~/.tmux.conf.local, see README.md | |
# -- general ------------------------------------------------------------------- |