Skip to content

Instantly share code, notes, and snippets.

View kenvontucky's full-sized avatar

João Gomes kenvontucky

View GitHub Profile
@kenvontucky
kenvontucky / python3_virtual_env.sh
Last active July 25, 2018 09:11
python 3 create virtual environment
python3 -m venv python-virtual-env
@kenvontucky
kenvontucky / python2_virtual_environment.sh
Last active July 25, 2018 09:10
python 2.7 create virtual environment
easy_install virtualenv
virtualenv --python=python2.7 python-virtual-env
cd () {
command cd $1;
if [ -d "python-virtual-env" ]; then
source python-virtual-env/bin/activate;
fi
}
cd () {
builtin cd $1;
if [ -d "python-virtual-env" ]; then
source python-virtual-env/bin/activate;
fi
}
@kenvontucky
kenvontucky / vscode_workspace_config
Last active July 25, 2018 09:25
Visual Studio Code Python workspace settings
{
"python.pythonPath": "./python-virtual-env/bin/python",
"python.autoComplete.extraPaths": [
"./python-virtual-env",
"./python-virtual-env/lib/python3.6/site-packages"
],
"python.linting.pylintArgs": [
"--load-plugins",
"pylint_django",
"--max-line-length=120"
source ~/.bashrc
source ~/.zshrc
@kenvontucky
kenvontucky / exclude
Created July 25, 2018 09:32
Git Exclude file
<PROJECT_FOLDER>/.git/info/exclude
@kenvontucky
kenvontucky / exclude content
Created July 25, 2018 09:35
Git pyhton environment git exclude
# append your environment folder name to the end of the file
python-virtual-env
@kenvontucky
kenvontucky / jupyter_setup.sh
Created July 25, 2018 13:46
Python Jupyter setup
# install jupyter python package
pip install jupyter
# run jupyter notebook
jupyter-notebook