Skip to content

Instantly share code, notes, and snippets.

View muxuezi's full-sized avatar
⛹️‍♂️
basketball

Todd Tao muxuezi

⛹️‍♂️
basketball
View GitHub Profile
@jakevdp
jakevdp / PythonLogo.ipynb
Last active April 7, 2024 18:40
Creating the Python Logo in Matplotlib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdbrice
jdbrice / custom.js
Created February 9, 2016 19:50
Sublime Keymap for Jupyter Notebooks
require(["codemirror/keymap/sublime", "notebook/js/cell", "base/js/namespace"],
function(sublime_keymap, cell, IPython) {
require("notebook/js/cell").Cell
setTimeout(function(){ // uncomment line to fake race-condition
require("notebook/js/cell").Cell.options_default.cm_config.keyMap = 'sublime';
var cells = IPython.notebook.get_cells();
for(var c=0; c<cells.length ; c++){
console.log( "Setting Sublime" )
cells[c].code_mirror.setOption('keyMap', 'sublime');
}
@robintw
robintw / bokeh_utils.py
Last active January 21, 2019 07:07
Bokeh Utils
from bokeh.plotting import figure, ColumnDataSource
from bokeh.models import HoverTool
def scatter_with_hover(df, x, y,
fig=None, cols=None, name=None, marker='x',
fig_width=500, fig_height=500, **kwargs):
"""
Plots an interactive scatter plot of `x` vs `y` using bokeh, with automatic
tooltips showing columns from `df`.
@nicolashery
nicolashery / pandas-heroku.md
Created September 8, 2012 22:35
Deploy Python app using Pandas on Heroku

Deploy Python app using Pandas on Heroku

2012-09-08

This document explains how to deploy a Python app that uses the Pandas library on Heroku.

Heroku builds Numpy (one of Pandas' requirements) fine. However, when trying to deploy an app with both numpy and pandas in its requirements.txt file (or even just pandas), for some reason it fails