Skip to content

Instantly share code, notes, and snippets.

@himat
Last active April 3, 2020 15:16
Show Gist options
  • Select an option

  • Save himat/1c1192a07f9b3aa96bafdaded329c146 to your computer and use it in GitHub Desktop.

Select an option

Save himat/1c1192a07f9b3aa96bafdaded329c146 to your computer and use it in GitHub Desktop.
[ipynb useful first cell lines] Useful commands to put in the top cells of an ipython notebook #python #notebook
%reload_ext autoreload
%autoreload 2
import os, sys
import pathlib
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
%%html
<style>
#notebook-container {
width: 90%;
background-color: #EEE
}
.code_cell {
flex-direction: row !important;
}
.code_cell .output_wrapper {
width: 50%;
background-color: #FFF
}
.code_cell .input {
width: 50%;
background-color: #FFF
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment