Follow these steps to run tensorflow on remote server but see the results on local browser using port forwarding.
- On the remote machine, run:
tensorboard --logdir <path> --port 6006
- On the local machine, run
Create the submodule:
git submodule add -b master <git@github.com:MYSUBMODULE.git> <path/to/MYSUBMODULE>
This creates the submodule and makes it track submodule's master
branch. You can change the branch name if you want to track a different branch.
Change some settings. In the parent repo:
# make it so that git status will include changes to submodules.
#!/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 |
# 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):