------------------------------------------------------------ revno: 3018 committer: Anton Gladky <[email protected]> branch nick: yade timestamp: Thu 2012-02-02 21:44:51 +0100 message: Minor changes for ipython 0.11 and 0.12 modified: core/main/main.py.in
-- lp:yade https://code.launchpad.net/~yade-dev/yade/trunk Your team Yade developers is subscribed to branch lp:yade. To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'core/main/main.py.in' --- core/main/main.py.in 2012-02-02 11:07:09 +0000 +++ core/main/main.py.in 2012-02-02 20:44:51 +0000 @@ -216,11 +216,11 @@ # http://lists.ipython.scipy.org/pipermail/ipython-user/2008-September/005839.html import IPython.ipapi IPython.ipapi.get().IP.atexit_operations() - elif yade.runtime.ipython_version==11: + elif yade.runtime.ipython_version>=11: from IPython.frontend.terminal.embed import InteractiveShellEmbed # use the dict to set attributes for k in ipconfig: setattr(InteractiveShellEmbed,k,ipconfig[k]) - InteractiveShellEmbed.banner1=banner # called banner1 here, not banner anymore + InteractiveShellEmbed.banner1=banner+'\n' # called banner1 here, not banner anymore ipshell=InteractiveShellEmbed() ipshell() # similar to the workaround, as for 0.10 (perhaps not needed?)
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

