Skip to content

Instantly share code, notes, and snippets.

View lneeraj97's full-sized avatar
🎯
Focusing

Neeraj Lakkapragada lneeraj97

🎯
Focusing
View GitHub Profile
@lneeraj97
lneeraj97 / python-documentation-notes.md
Last active July 8, 2019 11:49
Python documentation standards (Notes)

PYTHON DOCUMENTATION GUIDE (NOTES)

IMPORT STATEMENTS

Imports should always be written at the top of the file, after any module comments and docstrings.
Imports should be divided according to what is being imported. There are generally three groups:

  1. Standard library imports (Python’s built-in modules)
  2. Related third party imports (modules that are installed and do not belong to the current application)
  3. Local application imports (modules that belong to the current application)

Each group of imports should be separated by a blank space.

@lneeraj97
lneeraj97 / condaenv.txt
Created January 24, 2019 05:32 — forked from pratos/condaenv.txt
To package a conda environment (Requirement.txt and virtual environment)
# For Windows users# Note: <> denotes changes to be made
#Create a conda environment
conda create --name <environment-name> python=<version:2.7/3.5>
#To create a requirements.txt file:
conda list #Gives you list of packages used for the environment
conda list -e > requirements.txt #Save all the info about packages to your folder
@lneeraj97
lneeraj97 / install-conda.sh
Last active January 9, 2020 16:36 — forked from arose13/install-conda.sh
Install Miniconda in Ubuntu
# Setup Ubuntu
sudo apt update --yes
sudo apt upgrade --yes
# Get Miniconda and make it the main Python interpreter
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
bash ~/miniconda.sh -b -p ~/miniconda
rm ~/miniconda.sh
export PATH=~/miniconda/bin:$PATH