Skip to content

Instantly share code, notes, and snippets.

View chriddyp's full-sized avatar

Chris Parmer chriddyp

View GitHub Profile
# See official docs at https://dash.plotly.com
# pip install dash pandas
from dash import Dash, dcc, html, Input, Output
import plotly.express as px
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminderDataFiveYear.csv')
import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
import pandas as pd
app = dash.Dash()
df = pd.read_csv(
'https://gist.githubusercontent.com/chriddyp/'
@chriddyp
chriddyp / Pandas Widget - Time Series, Search, and Filtering.ipynb
Created January 22, 2015 22:30
A Collection of Plotly and IPython Widgets
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chriddyp
chriddyp / custom-keybindings.sublime-keymap
Last active October 19, 2021 15:10
Custom Sublime Text keybindings for rapid code navigation. No arrow keys required!
[
/* Navigate quickly through a file - Move by horizontally words and vertically by blocks */
{ "keys": ["ctrl+l"], "command": "move", "args": {"by": "subwords", "forward": true}},
{ "keys": ["ctrl+j"], "command": "move", "args": {"by": "subwords", "forward": false}},
{ "keys": ["ctrl+option+k"], "command": "move", "args": {"by": "stops", "forward": true, "empty_line": true}},
{ "keys": ["ctrl+option+i"], "command": "move", "args": {"by": "stops", "forward": false, "empty_line": true}},
/* Fine-grained navigation - Move horizontally by characters and vertically by lines */
{ "keys": ["ctrl+option+l"], "command": "move", "args": {"by": "characters", "forward": true}},
{ "keys": ["ctrl+option+j"], "command": "move", "args": {"by": "characters", "forward": false}},
@chriddyp
chriddyp / Atom Keymaps for Faster Navigation.cson
Last active February 4, 2021 16:20
My `keymap.cson` file that I use for faster, mouse-less navigation in my code editor.
'atom-text-editor:not([mini])':
'ctrl-i': 'core:move-up'
'ctrl-k': 'core:move-down'
'ctrl-j': 'editor:move-to-beginning-of-word'
'ctrl-l': 'editor:move-to-end-of-word'
'ctrl-alt-i': 'editor:move-to-beginning-of-previous-paragraph'
'ctrl-alt-k': 'editor:move-to-beginning-of-next-paragraph'
'shift-ctrl-alt-i': 'editor:select-to-beginning-of-previous-paragraph'
'shift-ctrl-alt-k': 'editor:select-to-beginning-of-next-paragraph'
@chriddyp
chriddyp / pyenv versions available on circle ci
Created August 11, 2017 18:40
Here are the versions of pyenv that are available on CircleCI (as of time of creation)
```
ubuntu@box212:~$ pyenv versions
system
2.7.10
* 2.7.11 (set by /opt/circleci/.pyenv/version)
2.7.12
3.1.4
3.1.5
3.2.5
3.2.6
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Notes from the Dash and Donuts workshop. See the comments below!

>>> go.Carpet?
Init signature: go.Carpet(a=None, a0=None, aaxis=None, asrc=None,
b=None, b0=None, baxis=None, bsrc=None,
carpet=None, cheaterslope=None, color=None,
customdata=None, customdatasrc=None,
da=None, db=None, font=None, hoverinfo=None,
hoverinfosrc=None, hoverlabel=None,
ids=None, idssrc=None, legendgroup=None,
name=None, opacity=None, selectedpoints=None,
@chriddyp
chriddyp / keymap.cson
Created April 26, 2018 15:14
My Atom Keymap
'atom-text-editor:not([mini])':
'ctrl-i': 'core:move-up'
'ctrl-k': 'core:move-down'
'ctrl-j': 'editor:move-to-beginning-of-word'
'ctrl-l': 'editor:move-to-end-of-word'
'ctrl-alt-i': 'editor:move-to-beginning-of-previous-paragraph'
'ctrl-alt-k': 'editor:move-to-beginning-of-next-paragraph'
'shift-ctrl-alt-i': 'editor:select-to-beginning-of-previous-paragraph'
'shift-ctrl-alt-k': 'editor:select-to-beginning-of-next-paragraph'