Skip to content

Instantly share code, notes, and snippets.

@mwaskom
mwaskom / replacing_seaborn_distplot.ipynb
Last active January 17, 2026 09:49
A guide to replacing the deprecated `seaborn.distplot` function.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / palettes.png
Last active January 2, 2026 23:47
Show all seaborn palettes and simulate what they look like with various color vision deficiencies. (The 10-element seaborn palettes will be part of the forthcoming 0.9 release).
palettes.png
@mwaskom
mwaskom / imports.py
Last active November 3, 2025 09:04
IPython magic to automate injecting import statements into a terminal/notebook. Put in ~/.ipython/profile_default/startup and call %imports <os> <fmri>
from IPython.core.magic import Magics, magics_class, line_magic
@magics_class
class Imports(Magics):
@line_magic
def imports(self, opts):
lines = []
@mwaskom
mwaskom / seaborn_dark_background.ipynb
Created December 3, 2015 19:49
Use seaborn with a dark background, if you like that sort of thing.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / titanic_seaborn.ipynb
Last active March 7, 2025 00:03
Exploring the Kaggle Titanic dataset with seaborn.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / SDT_Tutorial.ipynb
Last active June 11, 2024 15:48
Translation of Justin Gardner's Signal Detection Theory tutorial from MATLAB into Python
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.
@mwaskom
mwaskom / ddm_conv.ipynb
Created October 16, 2020 14:12
Comparing CPU- and GPU-based convolution and Fokker-Planck solution for fitting the drift diffusion model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / diffusion_tutorial.ipynb
Created March 23, 2016 18:02
Translation of Justin Gardner's drift diffusion tutorial from MATLAB into Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.