Skip to content

Instantly share code, notes, and snippets.

Avatar

Jake Vanderplas jakevdp

View GitHub Profile
View OpticalIllusion.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / convolution_matrix.py
Last active Mar 12, 2019
Convolution Matrix
View convolution_matrix.py
# Author: Jake VanderPlas
# LICENSE: MIT
from __future__ import division
import numpy as np
def convolution_matrix(x, N=None, mode='full'):
"""Compute the Convolution Matrix
@jakevdp
jakevdp / Parsimonious-vs-Parsley.ipynb
Last active Dec 8, 2016
Testing Parsley vs Parsimonious
View Parsimonious-vs-Parsley.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / Makefile
Last active Dec 26, 2019
Test of specializing sphinx autodoc
View Makefile
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# User-friendly check for sphinx-build
@jakevdp
jakevdp / AltairAPI.ipynb
Last active Sep 6, 2016
First attempt at auto-doc for altair API
View AltairAPI.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / Altair-Code-Gen.ipynb
Created Aug 10, 2016
Simple example of code generation with Altair
View Altair-Code-Gen.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / query.txt
Created Aug 1, 2016
Star/Galaxy SQL query
View query.txt
SELECT TOP 10000
p.psfMag_r, p.fiberMag_r, p.fiber2Mag_r, p.petroMag_r,
p.deVMag_r, p.expMag_r, p.modelMag_r, p.cModelMag_r,
s.class
FROM PhotoObjAll AS p JOIN specObjAll s ON s.bestobjid = p.objid
WHERE p.mode = 1 AND s.sciencePrimary = 1 AND p.clean = 1 AND s.class != 'QSO'
ORDER BY p.objid ASC
View RegressionChart.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / PythonCpp.ipynb
Last active Jan 8, 2020
Hack to make Python look like C++
View PythonCpp.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Vega-Lite.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.