Skip to content

Instantly share code, notes, and snippets.

View fperez's full-sized avatar

Fernando Perez fperez

View GitHub Profile
@fperez
fperez / nbmerge.py
Created June 23, 2015 01:04
Merge/concatenate multiple IPython notebooks into one.
#!/usr/bin/env python
# Note, updated version of
# https://github.com/ipython/ipython-in-depth/blob/master/tools/nbmerge.py
"""
usage:
python nbmerge.py A.ipynb B.ipynb C.ipynb > merged.ipynb
"""
import io
@fperez
fperez / SimplePlot.ipynb
Created December 27, 2015 07:02
SimplePlot
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / NewCodeCellWidget.ipynb
Created January 29, 2016 04:21
Automatic creation of new code cells via widgets.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / Jupyter-Newsletter-2---March-30-e73bdefd185f.md
Created May 6, 2016 05:13
HTML/docx to markdown conversion of Medium's export of Jupyter newsletter - a test.

Jupyter Newsletter 2 • March 30

JupyterDays Boston recap

Jupyter Newsletter 2 • March 30

JupyterDays Boston recap

@fperez
fperez / debug.log
Created May 12, 2016 18:57
Js widgets debug log
(master)denali[jupyter-js-widgets]> cat /Users/fperez/dev/ipython/ipywidgets/jupyter-js-widgets/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/6.0.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save',
1 verbose cli 'jupyter-js-widgets' ]
2 info using npm@3.8.6
3 info using node@v6.0.0
4 silly loadCurrentTree Starting
@fperez
fperez / Light data with Google Science Journal.ipynb
Last active February 25, 2019 13:18
Real-world data in a few minutes with Google Science Journal
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / batman-julia.ipynb
Created July 13, 2016 04:23
The "Batman curve" in Julia
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / CMagic.ipynb
Last active August 23, 2016 23:06
A quick and dirty implementation of a %%C magic to compile C code in IPython
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / SimpleNeuralNets.ipynb
Last active April 19, 2022 18:52
Notes for "Why does deep and cheap learning work so well?" (ArXiv:1608.08225v1/cond-mat.dis-nn) by Lin and Tegmark.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / conda.log
Created December 21, 2016 03:11
Conda debug log for Conda issue 3494
denali[~]> conda create -n iptest ipython -vvv
DEBUG conda.cli.main:_main(143): verbosity set to 3
DEBUG conda.core.index:fetch_index(349): channel_urls=OrderedDict([('https://repo.continuum.io/pkgs/free/osx-64', ('defaults', 0)), ('https://repo.continuum.io/pkgs/free/noarch', ('defaults', 0)), ('https://repo.continuum.io/pkgs/r/osx-64', ('defaults', 0)), ('https://repo.continuum.io/pkgs/r/noarch', ('defaults', 0)), ('https://repo.continuum.io/pkgs/pro/osx-64', ('defaults', 0)), ('https://repo.continuum.io/pkgs/pro/noarch', ('defaults', 0))])
Fetching package metadata ...DEBUG requests.packages.urllib3.util.retry:from_int(191): Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None)
DEBUG conda.core.index:fetch_repodata(284): Using cached repodata for https://repo.continuum.io/pkgs/free/osx-64 at /Users/fperez/usr/conda/pkgs/cache/840cf1fb.json. Timeout in 284 sec
.DEBUG conda.core.index:fetch_repodata(284): Using cached repodata for https://repo.continuum.io/pkgs/free/noarch at /