def notebook_config(notebook_width=75, hide_lines='collapse'):
    """
	configures viewing options of the jupyter notebook

	parameters:
	-----------
	notebook_width : int
		how wide (in %) the notebook should be
	hide_lines : str
		'collapse' for hiding line in/out, 'show' for showing
	"""
    statements = [
        """
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="Show Code"></form>''')
		"""
        , 
        "display(HTML('<style>.prompt{width: 0px; min-width: 0px; visibility: "
         + hide_lines + "}</style>'))", 
        'display(HTML("<style>.container { width:' + str(notebook_width) +
        '% !important; }</style>"))',
        "pd.set_option('display.max_columns', 500)",
        "pd.set_option('display.width', 250)"]
    string = ''
    for i in statements:
        string += i + '\n'
    return string
