Last active
August 14, 2017 01:15
-
-
Save r5v9/4363abcab535e3f4fa3a029b0d3ebf29 to your computer and use it in GitHub Desktop.
Ipython header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def facet(df): | |
template = """<link rel="import" href="/nbextensions/facets-dist/facets-jupyter.html"> | |
<facets-dive id="elem" height="600" style="width:125%"></facets-dive> | |
<script>var data = {jsonstr};document.querySelector("#elem").data = data;</script>""" | |
html = template.format(jsonstr=df.to_json(orient='records')) | |
display(HTML(html), ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.core.display import display, HTML | |
import warnings | |
disable_warnings = lambda: warnings.filterwarnings('ignore') | |
enable_warnings = lambda: warnings.simplefilter('always') | |
disable_warnings() | |
from pprint import pprint | |
import math, random, decimal | |
import sys, os, os.path | |
import re | |
import datetime, time | |
import itertools, functools | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
%config InlineBackend.figure_format = 'retina' | |
import seaborn as sns | |
sns.set_style('whitegrid') | |
import pandas as pd | |
from pandas import Series, DataFrame | |
pd.set_option('display.max_columns', 500) | |
pd.set_option('display.precision', 2) | |
import numpy as np | |
import statsmodels.api as sm | |
import networkx as nx | |
from pandas_profiling import ProfileReport | |
import missingno | |
from pivottablejs import pivot_ui | |
enable_warnings() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans" /> | |
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Inconsolata" /> | |
<style> | |
.container { width:95% !important; font-family: 'Open Sans', sans-serif; font-size: 12pt; } | |
#notebook-container { padding-left: 10px; padding-right: 10px; } | |
.navbar-collapse { font-size: 10pt; } | |
.kernel_indicator_name{ font-size: 10pt; } | |
.prompt {font-family: Inconsolata; font-size: 12pt;} | |
div .input_prompt {font-family: Inconsolata; font-size: 8pt; color: #606060; } | |
div .output_prompt {font-family: Inconsolata; font-size: 8pt; padding-top: 13px; color: #606060; } | |
.output_text pre {font-family: Inconsolata; font-size: 12pt; } | |
div.output_area pre { background-color: #ffffff; border: 1px solid #f0f0f0; padding: 3px;} | |
div.output_stderr pre { background-color: #ffdddd; border: 0; padding: 3px;} | |
.CodeMirror { background-color: #FEFEF9; } | |
.CodeMirror pre {font-family: Inconsolata; font-size: 12pt; line-height: 120%;} | |
.vega-actions { visibility: hidden; } | |
.vega-embed canvas.marks { border: 0px; } | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%javascript | |
IPython.OutputArea.auto_scroll_threshold = 9999; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment