Last active
November 7, 2019 17:06
-
-
Save nickyfoto/40cb833b873de36ae847654996a671a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# jupyter notebook --no-browser --ip=0.0.0.0 | |
from IPython.core.interactiveshell import InteractiveShell | |
InteractiveShell.ast_node_interactivity = "all" | |
%matplotlib inline | |
%config InlineBackend.figure_format = 'retina' | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
# show all pd.Dataframe | |
# https://stackoverflow.com/questions/19124601/pretty-print-an-entire-pandas-series-dataframe | |
with pd.option_context('display.max_rows', None, 'display.max_columns', None): | |
display(df) | |
from IPython.display import HTML | |
HTML('''<script> | |
code_show=true; | |
function code_toggle() { | |
if (code_show){ | |
$('div.input').hide(); | |
} else { | |
$('div.input').show(); | |
} | |
code_show = !code_show | |
} | |
$( document ).ready(code_toggle); | |
</script> | |
<form action="javascript:code_toggle()"><input type="submit" value="Click here to toggle on/off the raw code."></form>''') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment