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 / custom.js
Created January 2, 2013 19:49
Custom.js to edit top-level metadata of IPython notebook. Please Use only for développement purpose.
var raw_edit = function(notebook){
var md = notebook.metadata
var textarea = $('<textarea/>')
.attr('rows','13')
.attr('cols','75')
.attr('name','metadata')
.text(JSON.stringify(md, null,4)||'');
var dialogform = $('<div/>').attr('title','Edit the metadata')
@Carreau
Carreau / err1
Created March 11, 2013 17:10
error compiling native IPython notebook
PhaseScriptExecution "Build libpng" /Users/bussonniermatthias/Library/Developer/Xcode/DerivedData/IPython_Notebook-chtqfvhpkbzetzejxlofgplkmygu/Build/Intermediates/iPython_Notebook.build/Debug/libpng.build/Script-1BF40D8B16D5F77200D4FDEB.sh
cd /Users/bussonniermatthias/ipython-notebook
setenv ACTION build
setenv ALTERNATE_GROUP staff
setenv ALTERNATE_MODE u+w,go-w,a+rX
setenv ALTERNATE_OWNER bussonniermatthias
setenv ALWAYS_SEARCH_USER_PATHS NO
setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer
setenv APPLE_INTERNAL_DIR /AppleInternal
setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation
@Carreau
Carreau / YAML Notebook.ipynb
Created March 26, 2013 17:25
Are ipynb in YAML more readable ? Little test to convert ipynb file to YAML
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
%% This file was auto-generated by IPython.
%% Conversion from the original notebook file:
%% recitation4.ipynb
%%
\documentclass[11pt,english]{article}
%% This is the automatic preamble used by IPython. Note that it does *not*
%% include a documentclass declaration. The documentclass is added at runtime
%% to the overall document.
@Carreau
Carreau / autoipynb.js
Created April 3, 2013 20:54
autolink all ipynb link to nbviewer
url_root='http://nbviewer.ipython.org/';
url=null;
var transform_url = function(href){
if( href===undefined){return}
if (href.search(/^https?:\/\/nbviewer/) == 0 ){
console.log('case 1')
return null
} else if (href.search(/^https?:\/\/gist\.github\.com\/(?:\w+\/)?[a-f0-9]+$/) !== -1) {
console.log('case 2')
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Carreau
Carreau / rcGrid.ipynb
Created June 1, 2013 12:40
Bug example with matplotlib rcParam grid.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Carreau
Carreau / JuliaTest.ipynb
Created August 6, 2013 10:16
a test of documenting julia in notebook.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>[]</title>
<style type="text/css">
.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;}
.clearfix:after{clear:both;}
.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;}
.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}