Skip to content

Instantly share code, notes, and snippets.

@ruslanmv
Created December 25, 2021 10:21
Show Gist options
  • Save ruslanmv/90e2d0c9eb9e68bd3ab9ac560bb64206 to your computer and use it in GitHub Desktop.
Save ruslanmv/90e2d0c9eb9e68bd3ab9ac560bb64206 to your computer and use it in GitHub Desktop.
Python Snippets to set-up in Visual Code
{
"Header": {
"prefix": "header",
"body": [
"'''",
"#FILE: $1",
"Project: $WORKSPACE_NAME",
"-------------------",
"By: Anh Dang",
"Date: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE",
"Description:",
"$2",
"'''"
],
"description": "Header"
},
"Section": {
"prefix": "section",
"body": [
"## $1 - $2 -------",
""
],
"description": "Section"
},
"Sub-Section": {
"prefix": "subsection",
"body": [
"#### $1 - $2 ",
""
],
"description": "Sub-Section"
},
"Modules": {
"prefix": "modules",
"body": [
"## Import modules",
"import pandas as pd",
"import numpy as np",
"import os",
"import scipy as sp",
"import matplotlib.pyplot as plt"
],
"description": "Import common modules"
},
"jtplot": {
"prefix": "jtplot",
"body": [
"from jupyterthemes import jtplot",
"jtplot.style(theme='chesterish')",
"jtplot.style(context='talk', fscale=1.4, spines=False, gridlines='--')",
"jtplot.style(ticks=True, grid=True, figsize=(8, 6))"
],
"description": "Set-up Jtplot"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment