[Yt-svn] yt-commit r765 - branches/yt-generalization/scripts

joishi at wrangler.dreamhost.com joishi at wrangler.dreamhost.com
Tue Sep 9 14:00:20 PDT 2008


Author: joishi
Date: Tue Sep  9 14:00:17 2008
New Revision: 765
URL: http://yt.spacepope.org/changeset/765

Log:
* merged from trunk


Added:
   branches/yt-generalization/scripts/iyt

Added: branches/yt-generalization/scripts/iyt
==============================================================================
--- (empty file)
+++ branches/yt-generalization/scripts/iyt	Tue Sep  9 14:00:17 2008
@@ -0,0 +1,21 @@
+#!python
+
+from yt.mods import *
+namespace = locals().copy()
+
+doc = """\
+
+Welcome to yt!
+
+"""
+
+try:
+    import IPython.Shell
+except:
+    print 'ipython is not available. using default python interpreter.'
+    import code
+    import sys
+    code.interact(doc, None, namespace)
+    sys.exit()
+
+IPython.Shell.IPShellMatplotlib(user_ns=namespace).mainloop(sys_exit=1,banner=doc)



More information about the yt-svn mailing list