Skip to content

Instantly share code, notes, and snippets.

View fperez's full-sized avatar

Fernando Perez fperez

View GitHub Profile
@fperez
fperez / ipshell_doctest.py
Created February 1, 2014 03:39
IPython Shell that can be embedded when called in a doctest run
"""Implement a version of `IPython.embed()` which works during doctesting.
This provides a `dt_embed()` function that is similar to `IPython.embed`, but
which can run when used inside code that will be run via doctests (where the
default `embed` locks up due to the hijacking of `sys.stdout` that doctest
performs.
See https://github.com/ipython/ipython/issues/90 for the full details.
"""
@fperez
fperez / Numpy Distributions with Plotly.ipynb
Created February 11, 2014 06:45
Illustrating the properties of statistical distributions with numpy and plotly
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / Matplotlib3dInteract
Last active August 29, 2015 13:56
Interactive control of Matplotlib 3d figures
{
"metadata": {
"name": "",
"signature": "sha256:07f03dc736de2f21e779d51d9ce4580c72397bc701e44dacf2ee98298a9d7285"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@fperez
fperez / Randomization Tests.ipynb
Last active August 29, 2015 13:58
A version for the IPython R kernel of @dmbates' randomization tests document: http://rpubs.com/dmbates/15250
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / UpdateFigure.ipynb
Last active August 29, 2015 14:03
Simple updating of a matplotlib figure in an IPython notebook.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / gpu-setup.ipynb
Created July 6, 2014 22:48
Draft of gpu setup in multinode env
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / owWater-threaded.ipynb
Created August 22, 2014 21:36
Simple notebook to illustrate a problem with nbgrep
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / Spectroscopy GUI.ipynb
Created September 16, 2014 19:21
Non-trivial IPython notebook with a plotting GUI. Minimally modified from http://nbviewer.ipython.org/gist/bollwyvl/ddd4bf5d7c879012fa2c
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / nbguidemo.ipynb
Created September 16, 2014 22:34
gui question
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.