Skip to content

Instantly share code, notes, and snippets.

View kenvontucky's full-sized avatar

João Gomes kenvontucky

View GitHub Profile
@kenvontucky
kenvontucky / python_version.sh
Created July 27, 2018 09:00
Check Python version
# Display Python 3 version
python3 --version
# Display Python 2 version
python --version
@kenvontucky
kenvontucky / pip_cheatsheet.sh
Created July 25, 2018 14:11
Pip cheatsheet
# install
easy_install pip
# updated it to the latest version
pip install -U pip
# search a package
pip search <package-name>
# install a package
@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
@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 / exclude
Created July 25, 2018 09:32
Git Exclude file
<PROJECT_FOLDER>/.git/info/exclude
source ~/.zshrc
source ~/.bashrc
@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"
cd () {
builtin cd $1;
if [ -d "python-virtual-env" ]; then
source python-virtual-env/bin/activate;
fi
}
cd () {
command cd $1;
if [ -d "python-virtual-env" ]; then
source python-virtual-env/bin/activate;
fi
}