Skip to content

Instantly share code, notes, and snippets.

@alhoo
Created November 23, 2019 10:16
Show Gist options
  • Save alhoo/fc47eac884ca2eab9cd540bf8d34ebba to your computer and use it in GitHub Desktop.
Save alhoo/fc47eac884ca2eab9cd540bf8d34ebba to your computer and use it in GitHub Desktop.
%%javascript
IPython.notebook.kernel.execute('nb_name = "' + IPython.notebook.notebook_name + '".replace(".ipynb", "")')
---
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; </style>"))
%matplotlib inline
from matplotlib import pyplot as plt
%pylab inline
pylab.rcParams['figure.figsize'] = (20, 16)
nb_name = nb_name.replace(".ipynb", "")
import logging
FORMAT = '%(asctime)-15s %(levelname)s %(message)s'
logging.basicConfig(format=FORMAT)
logger = logging.getLogger(nb_name)
logger.setLevel(logging.INFO)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment