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 / gist:c3449e926cef59cd7331
Created November 17, 2014 18:23
Websocket traceback.
[E 19:17:43.278 NotebookApp] Uncaught exception GET /api/kernels/5e4399fe-fe5b-4c9d-90dc-362f74625db4/shell?session_id=92173CAC785C45EA87D5A5971C9C9548 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/api/kernels/5e4399fe-fe5b-4c9d-90dc-362f74625db4/shell?session_id=92173CAC785C45EA87D5A5971C9C9548', version='HTTP/1.1', remote_ip='::1', headers={'Accept-Encoding': 'gzip, deflate, sdch', 'Accept-Language': 'fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4', 'Sec-Websocket-Version': '13', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.42 Safari/537.36', 'Cache-Control': 'no-cache', 'Origin': 'http://localhost:8888', 'Host': 'localhost:8888', 'Sec-Websocket-Key': 'G92EtW9FoEi4IKZOB8Ha8w==', 'Upgrade': 'websocket', 'Pragma': 'no-cache', 'Connection': 'Upgrade', 'Sec-Websocket-Extensions': 'permessage-deflate; client_max_window_bits'})
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.4.1/F
@Carreau
Carreau / crash report
Created November 20, 2014 10:57
PyQtBackground segfault
Process: Python [1111]
Path: /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 2.7.6 (2.7.6)
Code Type: X86-64 (Native)
Parent Process: fish [936]
Date/Time: 2014-11-20 11:56:59.260 +0100
OS Version: Mac OS X 10.7.5 (11G63b)
Report Version: 9
// Add help panel at right side of notebook window
"using strict";
var help_panel_extension = (function() {
toggleHelpPanel = function () {
/* check if help panel is already there */
@Carreau
Carreau / gist:23793d6fd08d063932d4
Created May 11, 2015 23:59
fresh install of IPython errors.
$ ipython notebook --notebook-dir=~
[I 16:58:26.148 NotebookApp] Writing notebook server cookie secret to /Users/bussonniermatthias/Library/Jupyter/runtime/notebook_cookie_secret
[W 16:58:26.197 NotebookApp] Installing IPython kernel spec
/Users/bussonniermatthias/dev/jupyter_client/jupyter_client/kernelspec.py:160: UserWarning: install_native_kernel_spec is deprecated. Use ipykernel.kernelspec import install.
warnings.warn("install_native_kernel_spec is deprecated."
[I 16:58:26.214 NotebookApp] Serving notebooks from local directory: /Users/bussonniermatthias
[I 16:58:26.214 NotebookApp] 0 active kernels
[I 16:58:26.214 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 16:58:26.214 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[E 16:58:27.066 NotebookApp] Uncaught exception GET /clusters?_=1431388706933 (::1)
@Carreau
Carreau / cffi.py
Last active August 29, 2015 14:21
Cannot import 3,5+cython
In [1]: import cffi
In [2]: import cython
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-108703c9c932> in <module>()
----> 1 import cython
ImportError: No module named 'cython'
@Carreau
Carreau / foo.py
Created May 26, 2015 21:01
nose failure
$ iptest3 IPython.lib.tests
Test group: IPython.lib.tests
...........................................Traceback (most recent call last):
File "/usr/local/lib/python3.4/site-packages/nose/loader.py", line 255, in generate
test_func = getattr(m, test_func)
TypeError: getattr(): attribute name must be string
During handling of the above exception, another exception occurred:
@Carreau
Carreau / tclem.css
Created June 8, 2015 00:20
notebook theme in progress
.container {
margin:0;
width:100%;!important
}
body, html, .notebook_app, #header
{
background-color:white;!important
box-shadow:none;!important
}
@Carreau
Carreau / markcell.js
Created June 26, 2015 10:38
mark and jump through cells.
// activate with
// IPython.notebook.config.update({
// "load_extensions": {"markcell":true}
// })
// put in ~/.ipython/nbextensions/
define(['base/js/namespace'], function(IPython){
var _mcell = null;
var mark_cell = {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.