Skip to content

Instantly share code, notes, and snippets.

View Carreau's full-sized avatar
:octocat:

M Bussonnier Carreau

:octocat:
View GitHub Profile
@Carreau
Carreau / name.js
Created October 26, 2013 10:16
work in progress for IPython notebook cell's metadata name editing UI.
define(["require"], function(require) {
"use strict";
// first param reference to a DOM div
// second param reference to the cell.
/**
* Build a list of already existing names, except on given cell
*/
@Carreau
Carreau / gist:7180717
Created October 27, 2013 11:33
iptest error for single code base
iptest --all 12:27:49
IPython test group: parallel
.....................................................................................................E.E..............................................S....S....S..S...................................E................................................................
======================================================================
ERROR: test_require_function (IPython.parallel.tests.test_dependency.DependencyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bussonniermatthias/ipython/IPython/parallel/tests/test_dependency.py", line 126, in test_require_function
self.assertEqual(ar.get(5), func(5))
@Carreau
Carreau / custom.less
Created November 11, 2013 12:00
Monokai theme. to compile with `$lessc <thisfile.less> custom.css`
@import "../../../../ipython/IPython/html/static/style/style.less";
@baseBorderRadius : 0px;
@bodyBackground : #CCCCCC;
@corner_radius : 0px;
body {
font-family: Century Gothic, sans;
}
@Carreau
Carreau / TooltipMockup.ipynb
Last active December 28, 2015 10:19
mockup tooltip
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Carreau
Carreau / gist:7545432
Created November 19, 2013 13:35
crash statmodels
In [1]: import pyximport
(reverse-i-search)`pyxi': import pyximport
KeyboardInterrupt
In [2]: pyximport.install()
Out[2]: (None, <pyximport.pyximport.PyxImporter at 0x10e3bdfd0>)
In [3]: import statsmodels.api as sm
/Users/matthiasbussonnier/.pyxbld/temp.macosx-10.7-x86_64-2.7/pyrex/statsmodels/tsa/kalmanf/kalman_loglike.c:321:10: fatal error: 'numpy/arrayobject.h' file not found
@Carreau
Carreau / gist:7826416
Created December 6, 2013 15:24
Logentries extract
16:21:45.344 2013-12-06 15:21:45.225239+00:00 heroku router - - at=info method=GET path=/urls/www.logilab.org/file/187482/raw/quandl-data-with-pandas.ipynb host=nbviewer.herokuapp.com fwd="195.220.100.11" dyno=web.1 connect=1ms service=273ms status=500 bytes=5620
» 16:21:45.498 2013-12-06 15:21:45.429991+00:00 app web.1 - - [I 131206 15:21:45 handlers:122] cache get /urls/www.logilab.org/file/187482/raw/quandl-data-with-pandas.ipynb in 16.14 ms
» 16:21:45.597 2013-12-06 15:21:45.430669+00:00 app web.1 - - [I 131206 15:21:45 client:22] Fetching https://www.logilab.org/file/187482/raw/quandl-data-with-pandas.ipynb
» 16:21:45.745 2013-12-06 15:21:45.684720+00:00 app web.1 - - [W 131206 15:21:45 iostream:820] SSL Error on 15 ('88.190.241.233', 443): [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
» 16:21:45.747 2013-12-06 15:21:45.687083+00:00 app web.1 - - [I 131206 15:21:45 client:26] Fetched https://www.logilab.org/file/187482/raw/quandl-data-with-pandas.
@Carreau
Carreau / gist:7927377
Created December 12, 2013 12:43
IDS|MSG not define
ERROR:root:Uncaught exception, closing connection.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pyzmq-2.2.0.1-py2.7-macosx-10.7-intel.egg/zmq/eventloop/zmqstream.py", line 414, in _run_callback
callback(*args, **kwargs)
File "/Users/matthiasbussonnier/ipython/IPython/kernel/channels.py", line 169, in _handle_recv
ident,smsg = self.session.feed_identities(msg)
File "/Users/matthiasbussonnier/ipython/IPython/kernel/zmq/session.py", line 742, in feed_identities
idx = msg_list.index(DELIM)
ValueError: '<IDS|MSG>' is not in list
ERROR:root:Uncaught exception, closing connection.
@Carreau
Carreau / Turtles.ipynb
Last active December 31, 2015 20:19
turtles... all the way down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Carreau
Carreau / GistFIieTest.ipynb
Created December 30, 2013 10:10
A file link test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Carreau
Carreau / Untitled0.ipynb
Created January 23, 2014 19:07
Iframe exaple
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.