Skip to content

Instantly share code, notes, and snippets.

View mwcraig's full-sized avatar

Matt Craig mwcraig

View GitHub Profile
@mwcraig
mwcraig / run_profile_5ec598c.ipynb
Last active August 14, 2018 18:56
Memory profile, PR astropy/ccdproc#632 -- use numba JIT to speed up median sigma clipping
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwcraig
mwcraig / run_with_file_number_limit_copy.py
Created August 11, 2018 17:26
Script for running memory profile in ccdproc
from argparse import ArgumentParser
from tempfile import TemporaryDirectory
from pathlib import Path
import resource
import mmap
import sys
import gc
import psutil
@mwcraig
mwcraig / profile-image-combination.ipynb
Last active August 9, 2018 17:07
Do some profiling of image combination
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am mwcraig on github.
  • I am mwcraig (https://keybase.io/mwcraig) on keybase.
  • I have a public key ASBFm0jbrIY_hS3S6AZlzNcR8QxDLocayi75NNQqGKFzGAo

To claim this, I am signing this object:

@mwcraig
mwcraig / filter-transform-comparison.ipynb
Created October 22, 2017 01:01
Comparison of Ivezic and Jester SDSS → BVRI transforms
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.

jupyter widgets BoF

  • Want static version of a widget with graphs that update? Use jupyter-sphinx, though this will generate big notebooks because the data is embedded in the notebook.
  • Options for 3D rendering in javascript:
  • Can we nbconvert including widgets? Only if nbconvert can run the notebook...and it gets complicated. Tried having notebook lways save widget state, but notebooks got huge and had lots of churn.
  • How can the js side tell python something important has been updated? Can save state of widget after manipulation, but if user re-runs cell then that state will be lost but needs some manual cut and paste. Very receptive to pull requests that would generate python representation of the state and insert it in a notebook.
  • Any replacement for Jupyter Dashboard Server? Follow the issue in Jupyterlab. Goal is to ta
_ = """
me: Matt Craig, Professor Physics and Astronomy, MSUM (small undergrad public college)
I AM NOT THE MAIN VPYTHON DEV.
Project home page: vpython.org
install:
pip install vpython
or
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
os,package,cf-ray-root,Filename_1,Size,Last Modified,MD5,Content-Length,x-amz-meta-s3cmd-attrs,x-amz-id-2,Set-Cookie,CF-Cache-Status,Expires,Vary,Server,Last-Modified,Connection,x-amz-request-id,Cache-Control,Date,x-amz-version-id,Filename_2,Content-Type,CF-RAY
win-64,numpy-1.7.1-py33_0.tar.bz2,ORD,,,,0a0fffcd2d8f8b976df2c1134d0b73d3-2,14317225,,n82SBb1ouje3YfpxAdxYi/Oe3WXfGZH6h5t4tjXtjAnUfx/2GL8eLZKhI8zvxCTioMQBls3Yqd8=,"__cfduid=d3aea874d7caabd59f0c8e1a3d015cb0b1499359515; expires=Fri, 06-Jul-18 16:45:15 GMT; path=/; domain=.continuum.io; HttpOnly",HIT,"Thu, 06 Jul 2017 16:45:45 GMT",Accept-Encoding,cloudflare-nginx,"Tue, 28 Feb 2017 07:17:47 GMT",keep-alive,B1B745AE93041CB0,"public, max-age=30","Thu, 06 Jul 2017 16:45:15 GMT",Pzl0OKwQWVSB9xxHXPDgBZu4k5nf71rN,numpy-1.7.1-py33_0.tar.bz2,application/x-tar,37a4088affb554f2-ORD
win-64,numpy-1.7.0-py33_0.tar.bz2,ORD,,,,0c4d429e4619b70d1649cd14a775d7b5-2,14259544,,9lfRgPZ9qEH18KLyG1aQTwGCQ2oP0iLEsnEYkVtWV0BCfuHsGWHQUBPrEWO4vVcckai/A+b7eJE=,"__cfduid=ddd2acf6c0de0