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 / 0001-horizontal-split.patch
Created December 31, 2011 15:00
Quick hack for horizontal layout for IPython notebook
From 966540aed78e2f748832412c78d535e8b0951eaf Mon Sep 17 00:00:00 2001
From: Matthias BUSSONNIER <bussonniermatthias@gmail.com>
Date: Sat, 31 Dec 2011 15:56:56 +0100
Subject: [PATCH] horizontal split
---
.../frontend/html/notebook/static/css/notebook.css | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css
@Carreau
Carreau / QLabelCrash.py
Created February 28, 2012 08:22
Minimal crashing example
import sys
from PySide.QtCore import *
from PySide.QtGui import *
##
## ment to segfault in some condition on os-x
## see ipython/ipython #1407
##
# Create a Qt application
app = QApplication(sys.argv)
@Carreau
Carreau / contributions.rst
Created May 11, 2012 13:09
Python contribution for SciPY

I'm a Ph.D. student in biophysics in Paris, and I'm contributing to scientific python community mostly by being involved in IPython.

I have mainly contributed in two areas of this project recently.

I improved the user interface of the recently released QtConsole, adding the menu bar with most of the menu actions, shortcut and icons to improve usability for new user, and better discoverability of functions. In particular, there is now a magics menu listings all currently available IPython magic function.

@Carreau
Carreau / slideshow.js
Created July 12, 2012 12:25
Slideshow mode of Notebook
<div id='presentation_mode'>
<style>
.pmode{ display: none !important }
</style>
<script>
grp=0;
pmode = function(){
init()
cells = $('.cell')
@Carreau
Carreau / log.log
Created July 22, 2012 18:07
Find File Handler crashlog
git checkout minrk/staticfile 1 ↵ ──(Dim,jul22)─┘
Note: checking out 'minrk/staticfile'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
@Carreau
Carreau / test1.ipynb
Created August 3, 2012 19:36
Test IPynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
isome test
@Carreau
Carreau / invisiblepublic
Created August 5, 2012 23:04
Test public gist
this should not be listed, even if i make it public..
@Carreau
Carreau / phantomtest.js
Created November 4, 2012 19:35
Headless run-all notebook
page = require('webpage').create();
var system = require('system');
var fs = require("fs");
// notebook uuid to load.
var uuid = system.args[1];
var noop = function(){}
// external action to map on console.log message of embeded
@Carreau
Carreau / kernel.js
Created December 13, 2012 20:09
A node.js kernel for IPython notebook. You can see the explanation of the ipynb rendered in http://nbviewer.ipython.org
zmq = require("zmq")
fs = require("fs")
var config = JSON.parse(fs.readFileSync(process.argv[2]))
var connexion = "tcp://"+config.ip+":"
var shell_conn = connexion+config.shell_port
var pub_conn = connexion+config.iopub_port
var hb_conn = connexion+config.hb_port