Skip to content

Instantly share code, notes, and snippets.

View fperez's full-sized avatar

Fernando Perez fperez

View GitHub Profile
@fperez
fperez / README.md
Last active September 2, 2021 22:10
Notebook saving problem with JupyterLab 3.1.x

Saving problems in JupyterLab 3.1.x

Binder

The notebook in this gist is meant to illustrate a problem we're experiencing with a notebook that often fails to save at all when attempting to write to it from a cloud-hosted bub.

See the saving-bug notebok for more details.

@fperez
fperez / zip-errors.ipynb
Last active August 27, 2021 04:02
Demo of issues with zip file downloads from JupyterLab
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / README.md
Last active July 1, 2021 04:43
Polyglot Data Science with IPython

Polyglot Data Science with IPython & friends

Author: Fernando Pérez.

A demonstration of how to use Python, Julia, Fortran and R cooperatively to analyze data, in the same process.

This is supported by the IPython kernel and a few extensions that take advantage of IPython's magic system to provide low-level integration between Python and other languages.

See the companion notebook for data preparation and setup.

@fperez
fperez / .bash_utils
Created May 17, 2012 05:39
Bash configuration utilities for easy layered PYTHONPATH management
# -*- sh -*-
# Utilities for bash config files
# Contact: Fernando Perez <fernando.perez@colorado.edu>
#-----------------------------------------------------------------------------
# Useful constants
# For os, user or processor dependent config
@fperez
fperez / .bash_utils
Created November 13, 2012 02:53
Bash config
# -*- sh -*-
# Utilities for bash config files
# Contact: Fernando Perez <fperez@fperez.org>
#-----------------------------------------------------------------------------
# Useful constants
# For os, user or processor dependent config
@fperez
fperez / contour_overlap.py
Created March 9, 2011 20:23
Matplotlib contours with overlap control
"""Contours with overlap control.
This script generates widely spaced black contours, with a gray patch in a
subregion where more finely-spaced colored contours are visible. The gray
patch covers the black contours.
"""
import numpy as np
import matplotlib.mlab as mlab
from matplotlib.patches import Rectangle
@fperez
fperez / lp2gh-issues.py
Created February 20, 2011 01:14
Conversion from Launchpad bugs to GitHub ones
#!/usr/bin/env python
"""Launchpad to github bug migration script.
There's a ton of code from Hydrazine copied here:
https://launchpad.net/hydrazine
WARNING: this code was written for the Github issues v2 API, and has *not* been ported to v3. If anyone finds it useful and ports it, please drop me a pull request.
Usage
-----
@fperez
fperez / sprt-nbsp.ipynb
Created March 16, 2017 07:09
sprt test - adding an nbsp in the gap0 paragraph in 2nd cell
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / TestingDashboard.ipynb
Created January 12, 2015 02:17
Testing Dashboard to pull data from a Google form into Pandas and do simple analytics of human-driven tests
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / LongRunningJobs.ipynb
Created December 30, 2014 17:48
Interactive feedback for long-running jobs in IPython
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.