Skip to content

Instantly share code, notes, and snippets.

Fernando Perez fperez

Block or report user

Report or block fperez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fperez
fperez / LogisticRegressionPart2.ipynb
Created Nov 8, 2018
LogisticRegression notebook from Data100 - test for load/kernel creation time on JupyterLab. On my system (2017 13" MBP) this nb takes 14s to open and 15s *extra* to get a kernel with JLab 0.35.4, and 4s total in Classic (no extra time for kernel)
View LogisticRegressionPart2.ipynb
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 Apr 27, 2018
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.
View copy_trees.py
#!/usr/bin/env python
"""Copy data files to final html directory.
"""
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
import os
import sys
@fperez
fperez / README.md
Last active Jun 27, 2019
Polyglot Data Science with IPython
View README.md

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.

View release-counts.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / sprt-nbsp.ipynb
Created Mar 16, 2017
sprt test - adding an nbsp in the gap0 paragraph in 2nd cell
View sprt-nbsp.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fperez
fperez / widgetsave.ipynb
Last active Feb 25, 2017
Testing saving notebooks with ipywidgets embedded
View widgetsave.ipynb
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 Dec 21, 2016
Conda debug log for Conda issue 3494
View conda.log
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 / SimpleNeuralNets.ipynb
Last active May 28, 2019
Notes for "Why does deep and cheap learning work so well?" (ArXiv:1608.08225v1/cond-mat.dis-nn) by Lin and Tegmark.
View SimpleNeuralNets.ipynb
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 Aug 23, 2016
A quick and dirty implementation of a %%C magic to compile C code in IPython
View CMagic.ipynb
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 Jul 13, 2016
The "Batman curve" in Julia
View batman-julia.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.