##// END OF EJS Templates
protect flush_figures post-exec function from user error...
protect flush_figures post-exec function from user error Invalid matplotlib data may raise inside print_figure. flush_figures() is a post-exec function, so user errors should not raise. Instead, call get_ipython().showtraceback() if called from IPython, raising as before otherwise.

File last commit:

r2661:595fc3b9
r5735:c98183ce
Show More
main.py
24 lines | 551 B | text/x-python | PythonLexer
#
# main.py
# IPython1Sandbox
#
# Created by Barry Wark on 3/4/08.
# Copyright __MyCompanyName__ 2008. All rights reserved.
#
#import modules required by application
import objc
import Foundation
import AppKit
from PyObjCTools import AppHelper
from twisted.internet import _threadedselect
reactor = _threadedselect.install()
# import modules containing classes required to start application and load MainMenu.nib
import IPython1SandboxAppDelegate
import IPython.frontend.cocoa.cocoa_frontend
# pass control to AppKit
AppHelper.runEventLoop()