← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 3018: Minor changes for ipython 0.11 and 0.12

 

------------------------------------------------------------
revno: 3018
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
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?)