Skip to content

Instantly share code, notes, and snippets.

View fperez's full-sized avatar

Fernando Perez fperez

View GitHub Profile
@fperez
fperez / notebook_blogging.ipynb
Created September 7, 2012 05:03
Blogging with the 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 / 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 / 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 / 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 /
@fperez
fperez / widgetsave.ipynb
Last active February 25, 2017 02:02
Testing saving notebooks with ipywidgets embedded
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / nblinkcheck
Created September 22, 2014 06:02
Check links in an IPython notebook. For images, try to copy missing ones from a globally-configured store.
#!/usr/bin/env python
"""Check all figure links in an IPython notebook and try to copy missing ones.
Note: this quick script is adapted to a fairly specific pattern of
mine. You should simply use it as a template and starting point for
your own functionality.
I keep a single large directory full of figures I reuse on all my
talks, and I normally just symlink it from a new talk directory. But
this makes it harder to publish the talk sources in a self-contained
@fperez
fperez / release-counts.ipynb
Created December 1, 2017 10:46
Release counts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / copy_trees.py
Created April 27, 2018 20:33
Copy tree of files to sphinx's output build directory to preserve structure of source but make some files available for later download in final build.
#!/usr/bin/env python
"""Copy data files to final html directory.
"""
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
import os
import sys