##// END OF EJS Templates
fix base64 code in nbformat.v2...
fix base64 code in nbformat.v2 base64 encoding functions were called, but had no effect, because the notebook already has everything as b64-encoded bytestrings, which are valid ascii literals on Python 2. However, the encode/decode logic is actually triggered on Python 3, revealing its errors. This fixes the base64 functions that had no effect to have their intended effect, but does not use them. Rather, it is assumed that bytes objects are already b64-encoded (and thus ascii-safe), which assumption was already made in Python 2.

File last commit:

r4806:f4b8b67b
r5175:155b20cc
Show More
__init__.py
30 lines | 1013 B | text/x-python | PythonLexer
Brian Granger
Fixed import statements for inputhook.
r2068 # encoding: utf-8
"""
Extra capabilities for IPython
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2009 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
from IPython.lib.inputhook import (
enable_wx, disable_wx,
enable_gtk, disable_gtk,
enable_qt4, disable_qt4,
Brian Granger
More testing and docstrings added for inputhook.py
r2069 enable_tk, disable_tk,
Nicolas Rougier
Added code for the GLUT interactive session
r4806 enable_glut, disable_glut,
Nicolas Rougier
Missing files added (again). Need to practice with git...
r4693 enable_pyglet, disable_pyglet,
Brian Granger
Finishing up the wx, qt4 and tk support. Still have to do gtk.
r2214 set_inputhook, clear_inputhook,
Brian Granger
Updating terminal GUI support to use guisupport.py for qt4/wx.
r2918 current_gui
Brian Granger
Fixed import statements for inputhook.
r2068 )
#-----------------------------------------------------------------------------
# Code
Brian Granger
Updating terminal GUI support to use guisupport.py for qt4/wx.
r2918 #-----------------------------------------------------------------------------