Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import stopit | |
| with stopit.ThreadingTimeout(3) as to_ctx_mgr: | |
| assert to_ctx_mgr.state == to_ctx_mgr.EXECUTING | |
| # Something potentially very long but which | |
| sleep(2) | |
| print('done') | |
| print(bool(to_ctx_mgr)) |
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
| from IPython.core.display import HTML | |
| HTML(""" | |
| <style> | |
| .container {width: 1700px !important} | |
| </style> | |
| """) |
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
| import matplotlib.pyplot as plt | |
| import matplotlib.pylab as pylab | |
| import seaborn as sns | |
| %matplotlib inline | |
| pylab.rcParams['figure.figsize'] = 12.0, 7.0 | |
| plt.rcParams['axes.labelweight'] = 'bold' | |
| plt.rcParams['axes.titleweight'] = 'bold' | |
| plt.rcParams['font.family'] = 'serif' |