Skip to content

Instantly share code, notes, and snippets.

@jstenar
jstenar / Index.ipynb
Last active August 29, 2015 14:15
Index files by timestamp in filename
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jstenar
jstenar / whitespace_at_eof.py
Created November 22, 2011 07:47
white space at end of file
print "hello world!"
@jstenar
jstenar / Crash_report_ipython.txt
Created October 20, 2011 19:16
ipython crash dump readline missing
***************************************************************************
IPython post-mortem report
{'commit_hash': 'bae849b',
'commit_source': 'repository',
'ipython_path': 'c:\\python\\external\\ipython\\IPython',
'ipython_version': '0.12.dev',
'os_name': 'nt',
'platform': 'Windows-7-6.1.7601-SP1',
@jstenar
jstenar / run-encoding.py
Created September 6, 2011 18:27
Script to generate stdout for different codepages
# -*- coding: utf-8 -*-
import sys
data = u"Test data åäö"
print data.encode(sys.argv[1])
@jstenar
jstenar / unicode-script.py
Created September 6, 2011 18:14
Script for "non-ascii in __doc__ string crashes qtconsole kernel when showing tooltip"
# -*- coding: cp1252 -*-
def a():
u"åäö"
def b():
"åäö"
@jstenar
jstenar / Traceback
Created July 11, 2011 18:18
UnicodeDecodeError during startup
[TerminalIPythonApp] Unknown error in handling IPythonApp.exec_files:
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (57, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (20, 0))
---------------------------------------------------------------------------
@jstenar
jstenar / crashreport
Created June 28, 2011 18:47
crashreport for ipython issue "RuntimeError in completer"
***************************************************************************
IPython post-mortem report
{'commit_hash': 'f0437d2',
'commit_source': 'repository',
'ipython_path': 'c:\\python\\external\\ipython\\IPython',
'ipython_version': '0.11.dev',
'os_name': 'nt',
'platform': 'Windows-7-6.1.7601-SP1',
@jstenar
jstenar / gist:1040920
Created June 22, 2011 19:26
Traceback for ipython Issue #535
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.11.dev -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
%guiref -> A brief reference about the graphical user interface.
@jstenar
jstenar / missinglib
Created April 13, 2011 18:42
Missing libraries cause ImportError in tests
**********************************************************************
IPython test group: IPython.config
.................
----------------------------------------------------------------------
Ran 17 tests in 0.012s
OK
**********************************************************************
IPython test group: IPython.core
>f2("a b c")